[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: [Linux-ha-dev] function to remove a field for struct ha_msg
From: Guochun Shi <gshi () ncsa ! uiuc ! edu>
Date: 2005-01-28 9:32:05
Message-ID: 5.1.0.14.2.20050128032408.0374a820 () pop ! ncsa ! uiuc ! edu
[Download RAW message or body]
hi,
As requested, I added a function cl_msg_remove() to remove a field in a msg. See \
ha_msg.h for declaration. Here is simple explanation
int cl_msg_remove(struct ha_msg* msg, const char* name)
@msg: the message in which a field to be removed
@name: the name of the to-be-removed field
The field can be any type: string, binary, struct or list
Inside the function memory is freed for this field including name and value.
If name is not found, it prints out an error message and returns HA_FAIL.
A successful deletion returns HA_OK
-Guochun
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic