diff options
Diffstat (limited to 'src/dbi.h')
-rw-r--r-- | src/dbi.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -41,6 +41,7 @@ void og_dbi_close(struct og_dbi *db); #define OG_DB_MAC_MAXLEN 15 #define OG_DB_IP_MAXLEN 15 #define OG_DB_SMALLINT_MAXLEN 6 +#define OG_DB_COMMENT_MAXLEN 250 struct og_image_legacy { char software_id[OG_DB_INT_MAXLEN + 1]; @@ -110,6 +111,12 @@ struct og_room { bool remote; }; +struct og_center { + uint32_t id; + char name[OG_DB_CENTER_NAME_MAXLEN + 1]; + char comment[OG_DB_COMMENT_MAXLEN + 1]; +}; + struct og_folder { unsigned int id; unsigned int room; @@ -128,6 +135,7 @@ int og_dbi_get_computer_info(struct og_dbi *dbi, struct og_computer *computer, struct in_addr addr); int og_dbi_get_room_info(struct og_dbi *dbi, struct og_room *room, uint32_t room_id); +int og_dbi_get_center_info(struct og_dbi *dbi, struct og_center *center); bool og_dbi_get_image(struct og_dbi *dbi, struct og_image *image); int og_dbi_add_image(struct og_dbi *dbi, struct og_image *image); |