1*de1e4e89SAndroid Build Coastguard Worker /* 2*de1e4e89SAndroid Build Coastguard Worker * msg.h Messaging (netlink) helper functions. 3*de1e4e89SAndroid Build Coastguard Worker * 4*de1e4e89SAndroid Build Coastguard Worker * This program is free software; you can redistribute it and/or 5*de1e4e89SAndroid Build Coastguard Worker * modify it under the terms of the GNU General Public License 6*de1e4e89SAndroid Build Coastguard Worker * as published by the Free Software Foundation; either version 7*de1e4e89SAndroid Build Coastguard Worker * 2 of the License, or (at your option) any later version. 8*de1e4e89SAndroid Build Coastguard Worker * 9*de1e4e89SAndroid Build Coastguard Worker * Authors: Richard Alpe <[email protected]> 10*de1e4e89SAndroid Build Coastguard Worker */ 11*de1e4e89SAndroid Build Coastguard Worker 12*de1e4e89SAndroid Build Coastguard Worker #ifndef _TIPC_MSG_H 13*de1e4e89SAndroid Build Coastguard Worker #define _TIPC_MSG_H 14*de1e4e89SAndroid Build Coastguard Worker 15*de1e4e89SAndroid Build Coastguard Worker struct nlmsghdr *msg_init(char *buf, int cmd); 16*de1e4e89SAndroid Build Coastguard Worker int msg_doit(struct nlmsghdr *nlh, mnl_cb_t callback, void *data); 17*de1e4e89SAndroid Build Coastguard Worker int msg_dumpit(struct nlmsghdr *nlh, mnl_cb_t callback, void *data); 18*de1e4e89SAndroid Build Coastguard Worker int parse_attrs(const struct nlattr *attr, void *data); 19*de1e4e89SAndroid Build Coastguard Worker 20*de1e4e89SAndroid Build Coastguard Worker #endif 21