X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Fparser%2Fast.h;fp=src%2Finclude%2Fparser%2Fast.h;h=0736876ae1b464d0100958ad04c73b41a08e31b6;hp=8533fc705e6467b91840ce97b86cc20a09f14b14;hb=0012c03f12422094042bc1458000ac94a38e9efe;hpb=98439daa576d4dbc533e9d4b8a5f493926389554 diff --git a/src/include/parser/ast.h b/src/include/parser/ast.h index 8533fc7..0736876 100644 --- a/src/include/parser/ast.h +++ b/src/include/parser/ast.h @@ -258,11 +258,14 @@ typedef struct { int obj_type; char *hostname; /* optional */ char *name; + /* whether to include the full object, that is, + * including all attributes and all children */ + bool full; sdb_ast_node_t *filter; /* optional */ } sdb_ast_fetch_t; #define SDB_AST_FETCH(obj) ((sdb_ast_fetch_t *)(obj)) #define SDB_AST_FETCH_INIT \ - { { SDB_OBJECT_INIT, SDB_AST_TYPE_FETCH, -1 }, -1, NULL, NULL, NULL } + { { SDB_OBJECT_INIT, SDB_AST_TYPE_FETCH, -1 }, -1, NULL, NULL, 0, NULL } /* * sdb_ast_list_t represents a LIST command. @@ -384,7 +387,7 @@ sdb_ast_value_create(int type, char *name); * takes ownership of the strings and the filter node. */ sdb_ast_node_t * -sdb_ast_fetch_create(int obj_type, char *hostname, char *name, +sdb_ast_fetch_create(int obj_type, char *hostname, char *name, bool full, sdb_ast_node_t *filter); /*