00001 #ifndef SAD_WORKSPACE_H
00002 #define SAD_WORKSPACE_H 1
00003 #include "project_utilities.h"
00004 #include "trees_context.h"
00005
00006 BEGIN_C_DECLARATIONS
00007
00008 typedef struct Sad_workspace * sad_workspacep_t;
00009
00010 typedef struct Sad_xybox * sad_xybox_t;
00011
00012 typedef struct Sad_xytrans * sad_xytransp_t;
00013
00014 typedef struct Sad_elem * sad_elemp_t;
00015
00016 typedef int (*element_handler_t) (sad_elemp_t element);
00017
00018 sad_workspacep_t make_workspace (sad_contextp_t ctx, const char *dockey);
00019
00020 void dispose_workspace (sad_workspacep_t theworkspace);
00021
00022 int sad_addtile_workspace (sad_workspacep_t theworkspace,
00023 const char *tileid, int32_t xoff, int32_t yoff);
00024
00025 int sad_removetile_workspace (sad_contextp_t ctx,
00026 sad_workspacep_t theworkspace, const char *tileid);
00027
00028 END_C_DECLARATIONS
00029
00030 #endif