/* * netlink/data.h Abstract Data * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation version 2.1 * of the License. * * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch> */#ifndef NETLINK_DATA_H_#define NETLINK_DATA_H_#include<netlink/netlink.h>#ifdef __cplusplusextern"C"{#endifstructnl_data;/* General */externstructnl_data*nl_data_alloc(void*,size_t);externstructnl_data*nl_data_alloc_attr(structnlattr*);externstructnl_data*nl_data_clone(structnl_data*);externintnl_data_append(structnl_data*,void*,size_t);externvoidnl_data_free(structnl_data*);/* Access Functions */externvoid*nl_data_get(structnl_data*);externsize_tnl_data_get_size(structnl_data*);/* Misc */externintnl_data_cmp(structnl_data*,structnl_data*);#ifdef __cplusplus}#endif#endif