X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2Frmr_get_const.3.rst;h=f39465cf182ca5ce3f193198b61fd481af663c44;hb=d324fe4bfea9daa22aa16c605bd3157a875a8ccd;hp=ebcdaf944e426534f310d842cc39bfc07d1da276;hpb=117030c67f7a3722e64f1ecc3305a5862b3b7ce9;p=ric-plt%2Flib%2Frmr.git diff --git a/docs/rmr_get_const.3.rst b/docs/rmr_get_const.3.rst index ebcdaf9..f39465c 100644 --- a/docs/rmr_get_const.3.rst +++ b/docs/rmr_get_const.3.rst @@ -1,68 +1,73 @@ - - -.. This work is licensed under a Creative Commons Attribution 4.0 International License. -.. SPDX-License-Identifier: CC-BY-4.0 -.. CAUTION: this document is generated from source in doc/src/rtd. -.. To make changes edit the source and recompile the document. -.. Do NOT make changes directly to .rst or .md files. - - -============================================================================================ -Man Page: rmr_get_const -============================================================================================ - -RMR Library Functions -============================================================================================ - - -NAME --------------------------------------------------------------------------------------------- - -rmr_get_const - -SYNOPSIS --------------------------------------------------------------------------------------------- - - -:: - - #include - unsigned char* rmr_get_const(); - - - -DESCRIPTION --------------------------------------------------------------------------------------------- - -The rmr_get_const function is a convenience function for -wrappers which do not have the ability to "compile in" RMR -constants. The function will build a nil terminated string -containing JSON which defines the RMR constants that C and Go -applications have at compile time via the rmr.h header file. - -All values are represented as strings and the JSON format is -illustrated in the following (partial) example: - - -:: - - { - "RMR_MAX_XID": "32", - "RMR_OK": "0", - "RMR_ERR_BADARG", "1", - "RMR_ERR_NOENDPT" "2" - } - - - -RETURN VALUE --------------------------------------------------------------------------------------------- - -On success, a pointer to a string containing the JSON -defining constant and value pairs. On failure a nil pointer -is returned. - -SEE ALSO --------------------------------------------------------------------------------------------- - -rmr(7) +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. SPDX-License-Identifier: CC-BY-4.0 +.. CAUTION: this document is generated from source in doc/src/rtd. +.. To make changes edit the source and recompile the document. +.. Do NOT make changes directly to .rst or .md files. + +============================================================================================ +Man Page: rmr_get_const +============================================================================================ + + + + +RMR LIBRARY FUNCTIONS +===================== + + + +NAME +---- + +rmr_get_const + + +SYNOPSIS +-------- + + +:: + + #include + + unsigned char* rmr_get_const(); + + + +DESCRIPTION +----------- + +The ``rmr_get_const`` function is a convenience function for +wrappers which do not have the ability to "compile in" RMR +constants. The function will build a nil terminated string +containing JSON which defines the RMR constants that C and Go +applications have at compile time via the ``rmr.h`` header +file. + +All values are represented as strings and the JSON format is +illustrated in the following (partial) example: + + +:: + + { + "RMR_MAX_XID": "32", + "RMR_OK": "0", + "RMR_ERR_BADARG", "1", + "RMR_ERR_NOENDPT" "2" + } + + + +RETURN VALUE +------------ + +On success, a pointer to a string containing the JSON +defining constant and value pairs. On failure a nil pointer +is returned. + + +SEE ALSO +-------- + +rmr(7)