2
* Copyright (C) 2005 Mike Wray <mike.wray@hp.com>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by the
6
* Free Software Foundation; either version 2 of the License, or (at your
7
* option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free software Foundation, Inc.,
16
* 59 Temple Place, suite 330, Boston, MA 02111-1307 USA
20
#define _SXPR_UTIL__H_
25
int stringof(Sxpr exp, char **s);
26
int child_string(Sxpr exp, Sxpr key, char **s);
27
int intof(Sxpr exp, int *v);
28
int child_int(Sxpr exp, Sxpr key, int *v);
29
int vnetof(Sxpr exp, struct VnetId *v);
30
int child_vnet(Sxpr exp, Sxpr key, struct VnetId *v);
31
int macof(Sxpr exp, unsigned char *v);
32
int child_mac(Sxpr exp, Sxpr key, unsigned char *v);
33
int addrof(Sxpr exp, uint32_t *v);
34
int child_addr(Sxpr exp, Sxpr key, uint32_t *v);
36
#endif /* ! _SXPR_UTIL_H_ */