11/*
2- * Copyright 2018-2022 ObjectBox Ltd. All rights reserved.
2+ * Copyright 2018-2023 ObjectBox Ltd. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
3434#include "objectbox.h"
3535
3636#if defined(static_assert ) || defined(__cplusplus )
37- static_assert (OBX_VERSION_MAJOR == 0 && OBX_VERSION_MINOR == 18 && OBX_VERSION_PATCH == 0 , // NOLINT
37+ static_assert (OBX_VERSION_MAJOR == 0 && OBX_VERSION_MINOR == 18 && OBX_VERSION_PATCH == 1 , // NOLINT
3838 "Versions of objectbox.h and objectbox-sync.h files do not match, please update" );
3939#endif
4040
@@ -505,7 +505,7 @@ typedef void OBX_custom_msg_server_func_client_connection_shutdown(void* connect
505505/// Struct of the custom server function callbacks. In order to implement the custom server, you must provide
506506/// custom methods for each of the members of this struct. This is then passed to obx_custom_msg_server_register()
507507/// to register the custom server.
508- struct OBX_custom_msg_server_functions {
508+ typedef struct OBX_custom_msg_server_functions {
509509 /// Must be initialized with sizeof(OBX_custom_msg_server_functions) to "version" the struct.
510510 /// This allows the library (whi) to detect older or newer versions and react properly.
511511 size_t version ;
@@ -518,7 +518,7 @@ struct OBX_custom_msg_server_functions {
518518 OBX_custom_msg_server_func_client_connection_send_async * func_conn_send_async ;
519519 OBX_custom_msg_server_func_client_connection_close * func_conn_close ;
520520 OBX_custom_msg_server_func_client_connection_shutdown * func_conn_shutdown ;
521- };
521+ } OBX_custom_msg_server_functions ;
522522
523523/// Must be called to register a protocol for a custom messaging server. Call before starting a server.
524524/// @param protocol the communication protocol to use, e.g. "tcp"
@@ -613,7 +613,7 @@ typedef void OBX_custom_msg_client_func_clear_outgoing_messages(void* client_use
613613/// Struct of the custom client function callbacks. In order to implement the custom client, you must provide
614614/// custom methods for each of the members of this struct. This is then passed to obx_custom_msg_client_register()
615615/// to register the custom client.
616- struct OBX_custom_msg_client_functions {
616+ typedef struct OBX_custom_msg_client_functions {
617617 /// Must be initialized with sizeof(OBX_custom_msg_client_functions) to "version" the struct.
618618 /// This allows the library to detect older or newer versions and react properly.
619619 size_t version ;
@@ -627,7 +627,7 @@ struct OBX_custom_msg_client_functions {
627627 OBX_custom_msg_client_func_shutdown * func_shutdown ;
628628 OBX_custom_msg_client_func_send_async * func_send_async ;
629629 OBX_custom_msg_client_func_clear_outgoing_messages * func_clear_outgoing_messages ;
630- };
630+ } OBX_custom_msg_client_functions ;
631631
632632/// States of custom msg client that must be forwarded to obx_custom_msg_client_set_state().
633633typedef enum {
0 commit comments