X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Fparser%2Fast.h;h=01446abbd84b86e4b0395e2715f700fbad04a9dd;hp=0736876ae1b464d0100958ad04c73b41a08e31b6;hb=07dada8e5c614f0ef90fed8e86183ba7acd0e6e8;hpb=99a970fdf911d6885750508044153c920620423f diff --git a/src/include/parser/ast.h b/src/include/parser/ast.h index 0736876..01446ab 100644 --- a/src/include/parser/ast.h +++ b/src/include/parser/ast.h @@ -257,6 +257,8 @@ typedef struct { sdb_ast_node_t super; int obj_type; char *hostname; /* optional */ + int parent_type; /* optional */ + char *parent; /* optional */ char *name; /* whether to include the full object, that is, * including all attributes and all children */ @@ -265,7 +267,7 @@ typedef struct { } 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, 0, NULL } + { { SDB_OBJECT_INIT, SDB_AST_TYPE_FETCH, -1 }, -1, NULL, -1, NULL, NULL, 0, NULL } /* * sdb_ast_list_t represents a LIST command. @@ -387,8 +389,9 @@ 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, bool full, - sdb_ast_node_t *filter); +sdb_ast_fetch_create(int obj_type, char *hostname, + int parent_type, char *parent, char *name, + bool full, sdb_ast_node_t *filter); /* * sdb_ast_list_create: