X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcommon%2Finclude%2Frmr.h;h=e6c1660f1d42e705d067a39688620dd8ee000ce2;hb=refs%2Fchanges%2F51%2F151%2F1;hp=4e662efa8dd33766b5412458fa26a51d7ae72aef;hpb=c1aee2b63a523a461e96a8d358c73dd8a9e9e6a2;p=ric-plt%2Flib%2Frmr.git diff --git a/src/common/include/rmr.h b/src/common/include/rmr.h index 4e662ef..e6c1660 100644 --- a/src/common/include/rmr.h +++ b/src/common/include/rmr.h @@ -1,14 +1,14 @@ // : vi ts=4 sw=4 noet : /* ================================================================================== - Copyright (c) 2019 Nokia + Copyright (c) 2019 Nokia Copyright (c) 2018-2019 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -47,6 +47,8 @@ extern "C" { #define RMR_DEF_SIZE 0 // pass as size to have msg allocation use the default msg size +#define RMR_VOID_MSGTYPE (-1) // unset/invalid message type and sub id +#define RMR_VOID_SUBID (-1) #define RMR_OK 0 // state is good #define RMR_ERR_BADARG 1 // argument passd to function was unusable @@ -82,7 +84,7 @@ typedef struct { int sub_id; // subscription id // these things are off limits to the user application - void* tp_buf; // underlying transport allocated pointer (e.g. nng message) + void* tp_buf; // underlying transport allocated pointer (e.g. nng message) void* header; // internal message header (whole buffer: header+payload) unsigned char* id; // if we need an ID in the message separate from the xaction id int flags; // various MFL_ (private) flags as needed @@ -141,23 +143,23 @@ extern int rmr_send_to( void* vctx, int time ); // DEPRECATED -- replaced with #ifdef UTA_COMPAT #pragma message( "use of UTA_COMPAT is deprecated and soon to be removed" ) -#define UTA_MAX_XID RMR_MAX_XID -#define UTA_MAX_SID RMR_MAX_SID -#define UTA_MAX_SRC RMR_MAX_SRC -#define UTA_MAX_RCV_BYTES RMR_MAX_RCV_BYTES +#define UTA_MAX_XID RMR_MAX_XID +#define UTA_MAX_SID RMR_MAX_SID +#define UTA_MAX_SRC RMR_MAX_SRC +#define UTA_MAX_RCV_BYTES RMR_MAX_RCV_BYTES -#define UTAFL_NONE RMRFL_NONE -#define UTAFL_AUTO_ALLOC RMRFL_AUTO_ALLOC +#define UTAFL_NONE RMRFL_NONE +#define UTAFL_AUTO_ALLOC RMRFL_AUTO_ALLOC -#define UTA_DEF_SIZE RMRFL_AUTO_ALLOC +#define UTA_DEF_SIZE RMRFL_AUTO_ALLOC -#define UTA_OK RMR_OK -#define UTA_ERR_BADARG RMR_ERR_BADARG -#define UTA_ERR_NOENDPT RMR_ERR_NOENDPT +#define UTA_OK RMR_OK +#define UTA_ERR_BADARG RMR_ERR_BADARG +#define UTA_ERR_NOENDPT RMR_ERR_NOENDPT #define UTA_ERR_EMPTY RMR_ERR_EMPTY -#define UTA_ERR_NOHDR RMR_ERR_NOHDR -#define UTA_ERR_SENDFAILED RMR_ERR_SENDFAILED -#define UTA_ERR_CALLFAILED RMR_ERR_CALLFAILED +#define UTA_ERR_NOHDR RMR_ERR_NOHDR +#define UTA_ERR_SENDFAILED RMR_ERR_SENDFAILED +#define UTA_ERR_CALLFAILED RMR_ERR_CALLFAILED #define uta_mbuf_t rmr_mbuf_t