1 #define DWG_TYPE DWG_TYPE_VIEW_CONTROL
2 #include "common.c"
3 
4 void
api_process(dwg_object * obj)5 api_process (dwg_object *obj)
6 {
7   int error, isnew;
8   BITCODE_BS i, num_entries;
9   BITCODE_H *entries, *hdls;
10 
11   dwg_obj_view_control *ctrl = dwg_object_to_VIEW_CONTROL (obj);
12 
13   CHK_ENTITY_TYPE (ctrl, VIEW_CONTROL, num_entries, BS);
14   entries = dwg_object_tablectrl_get_entries (obj, &error);
15   if (!dwg_dynapi_entity_value (ctrl, "VIEW_CONTROL", "entries", &hdls, NULL))
16     fail ("VIEW_CONTROL.entries");
17   for (i = 0; i < num_entries; i++)
18     {
19       if (hdls[i] == entries[i])
20         ok ("VIEW_CONTROL.entries[%d]: " FORMAT_REF, i, ARGS_REF (entries[i]));
21       else
22         fail ("VIEW_CONTROL.entries[%d]: " FORMAT_REF, i, ARGS_REF (entries[i]));
23     }
24 }
25