From 3cb98c7187b3f9b9bc02f202cbed3181a82fde76 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 18 Sep 2020 15:17:43 +0200 Subject: #941 move og_dbi_get_computer_info() to dbi Move this function to the dbi.{h,c} files. --- src/dbi.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/dbi.h') diff --git a/src/dbi.h b/src/dbi.h index 4f1d81c..1d11aa2 100644 --- a/src/dbi.h +++ b/src/dbi.h @@ -49,4 +49,15 @@ struct og_legacy_partition { extern struct og_dbi_config dbi_config; +struct og_computer { + unsigned int id; + unsigned int center; + unsigned int room; + char name[OG_DB_COMPUTER_NAME_MAXLEN + 1]; + unsigned int procedure_id; +}; + +struct in_addr; +int og_dbi_get_computer_info(struct og_computer *computer, struct in_addr addr); + #endif -- cgit v1.2.3-18-g5258