1 #ifndef CLIB_IFCONFIG_PROTOS_H 2 #define CLIB_IFCONFIG_PROTOS_H 3 4 /* 5 ifconfig.library C prototypes 6 7 Copyright © 2002 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef LIBRARIES_IFCONFIG_H 11 #include <libraries/ifconfig.h> 12 #endif 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif /* __cplusplus */ 17 18 /* ifconfig.library functions */ 19 20 /* 21 * Find the interface configuration for interface ifname. 22 */ 23 LONG IfConfigFind(const char *ifname, struct ifconfig ** ifcp); 24 25 /* 26 * Free the configuration got from IfConfigFind(). 27 */ 28 void IfConfigFree(struct ifconfig * config); 29 30 /* 31 * Find all interface configurations matching the filter. filter can be NULL. 32 */ 33 LONG IfConfigFindAll(struct List ** ifclist, struct TagItem * filter); 34 35 /* 36 * Free a list of configuration entries returned by IfConfigFindAll(). 37 */ 38 void IfConfigFreeList(struct List * list); 39 40 /* 41 * Convert ifconfig.library error codes to english language error strings. 42 */ 43 const UBYTE * IfConfigStrError(ULONG ioerr, char * buf, ULONG bufsiz); 44 45 /* 46 * Return (english) name of the tag 47 */ 48 const struct ifc_confitem * IfConfigGetTagInfo(ULONG tagcode); 49 50 struct ifconfig *IfConfigCreate(char *buf, ULONG bufsize); 51 ULONG IfConfigGetData(ULONG tagcode, ULONG def, struct ifconfig *ifc); 52 53 #ifdef __cplusplus 54 } 55 #endif /* __cplusplus */ 56 57 #endif /* !CLIB_IFCONFIG_PROTOS_H */