51 WSBool isused; |
54 WSBool isused; |
52 } PgExtTable; |
55 } PgExtTable; |
53 |
56 |
54 typedef struct PgRepository { |
57 typedef struct PgRepository { |
55 int64_t root_resource_id; |
58 int64_t root_resource_id; |
56 sstr_t resourcepool; |
59 cxmutstr resourcepool; |
57 PgExtTable *tables; |
60 PgExtTable *tables; |
58 size_t ntables; |
61 size_t ntables; |
59 UcxMap *prop_ext; |
62 CxMap *prop_ext; |
60 } PgRepository; |
63 } PgRepository; |
61 |
64 |
62 typedef struct { |
65 typedef struct { |
63 char *column; |
66 char *column; |
64 char *ns; |
67 char *ns; |
65 char *name; |
68 char *name; |
66 int tableindex; |
69 int tableindex; |
67 } PgPropertyStoreExt; |
70 } PgPropertyStoreExt; |
68 |
71 |
69 typedef struct { |
72 typedef struct { |
70 UcxMap *table_lookup; |
73 CxMap *table_lookup; |
71 UcxList *tables; |
74 CxList *tables; |
72 } PgExtParser; |
75 } PgExtParser; |
73 |
76 |
74 int pg_lookup_root(ResourceData *res, const char *rootnode, int64_t *rootid); |
77 int pg_lookup_root(ResourceData *res, const char *rootnode, int64_t *rootid); |
75 |
78 |
76 PgRepository* pg_init_repo(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config); |
79 PgRepository* pg_init_repo(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config); |