X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Ffrontend%2Fproto.h;fp=src%2Finclude%2Ffrontend%2Fproto.h;h=ade3a7cb192eaa7fc1ccf0fa5c01c050723c69e8;hb=f813acbff144fa649d152838957c321894c1cbba;hp=833762d76a3644a9237c19ccb9c29f9a26e36f51;hpb=5637e2d8b66c64cb4ce2e205c0f6912cd8f9eb54;p=sysdb.git diff --git a/src/include/frontend/proto.h b/src/include/frontend/proto.h index 833762d..ade3a7c 100644 --- a/src/include/frontend/proto.h +++ b/src/include/frontend/proto.h @@ -298,6 +298,25 @@ typedef enum { * A parsed expression. Only used internally. */ SDB_CONNECTION_EXPR, + + /* + * Server status queries. + */ + + /* + * SDB_CONNECTION_SERVER_VERSION: + * Retrieve the server version. The server replies with SDB_CONNECTION_OK + * on success and the server version as an unsigned 32-bit integer, + * optionally followed by a string describing extra version components. + * The integer server version is encoded as 100000 * major + 100 * minor + + * patch. + * + * 0 32 64 + * +---------------+---------------+ + * | SERVER_VERSION| 0 | + * +---------------+---------------+ + */ + SDB_CONNECTION_SERVER_VERSION = 1000, } sdb_conn_state_t; #define SDB_CONN_MSGTYPE_TO_STRING(t) \