When using convenience library, this may lead to multiple definition
of this function. We are better off not defining it and using
`marshal_unserialize()` in `client.c` instead.
{
char *name;
struct lldpd_hardware *hardware;
+ void *p;
/* Get name of the interface */
- if (string_unserialize(input, input_len, &name) <= 0) {
+ if (marshal_unserialize(string, input, input_len, &p) <= 0) {
*type = NONE;
return 0;
}
+ name = p;
/* Search appropriate hardware */
log_debug("rpc", "client request interface %s", name);
#define marshal_unserialize(type, o, l, input) \
marshal_unserialize_(&MARSHAL_INFO(type), o, l, input, NULL, 0, 0)
-MARSHAL_HELPER_FUNCTIONS(string, char)
-
#endif