Skip to content
Snippets Groups Projects
Commit 9b1b309c authored by Steven Murray's avatar Steven Murray
Browse files

Moved all of the DLF parameter type 'defines' into the same file (h/dlf_api.h)...

Moved all of the DLF parameter type 'defines' into the same file (h/dlf_api.h) and fixed freeing of a parameter name for raw parameters that don't have a name.
parent 3fa78808
No related branches found
No related tags found
No related merge requests found
......@@ -678,9 +678,20 @@ int dlf_writept(Cuuid_t reqid,
break;
default:
/* Please note that this case is used for normally program execution */
/* for the following parameter types: */
/* */
/* DLF_MSG_PARAM_UID */
/* DLF_MSG_PARAM_GID */
/* DLF_MSG_PARAM_STYPE */
/* DLF_MSG_PARAM_SNAME */
break; /* Nothing */
}
free(name);
/* RAW parameters have no name */
if (params[i].type != DLF_MSG_PARAM_RAW) {
free(name);
}
/* Check if there is enough space in the buffer */
if ((int)len >= maxmsglen) {
......
......@@ -55,7 +55,11 @@
#define DLF_MSG_PARAM_UUID 5 /* Subrequest identifier */
#define DLF_MSG_PARAM_FLOAT 6 /* Single precision floating point value */
#define DLF_MSG_PARAM_INT 7 /* Integer parameter */
#define DLF_MSG_PARAM_RAW 8 /* raw (set of) parameters, in key=value format */
#define DLF_MSG_PARAM_UID 8
#define DLF_MSG_PARAM_GID 9
#define DLF_MSG_PARAM_STYPE 10
#define DLF_MSG_PARAM_SNAME 11
#define DLF_MSG_PARAM_RAW 12 /* raw (set of) parameters, in key=value format */
/* Message number ranges (0-999) reserved for local messages */
#define DLF_BASE_SHAREDMEMORY 1000 /* Shared Memory related code */
......
......@@ -37,10 +37,6 @@
/* Required by tplogger */
#define DLF_LEN_MSGTEXT 512
#define DLF_MSG_PARAM_UID 8
#define DLF_MSG_PARAM_GID 9
#define DLF_MSG_PARAM_STYPE 10
#define DLF_MSG_PARAM_SNAME 11
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment