]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/install+setup/libsmooth/libsmooth.h
1 /* SmoothWall libsmooth.
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
6 * (c) Lawrence Manning, 2001
7 * Contains prototypes for library functions.
9 * $Id: libsmooth.h,v 1.4.2.3 2005/10/30 23:25:35 franck78 Exp $
13 #ifndef ___LIBSMOOTH_H
14 #define ___LIBSMOOTH_H
24 #include <sys/types.h>
29 #include <sys/mount.h>
31 #include <sys/socket.h>
32 #include <netinet/in.h>
33 #include <arpa/inet.h>
35 #include <linux/cdrom.h>
36 #include <sys/ioctl.h>
40 #define STRING_SIZE 1023
46 #define NETCHANGE_TOTAL 4
50 char key
[STRING_SIZE
];
51 char value
[STRING_SIZE
];
52 struct keyvalue
*next
;
55 /* for stuff in net.c */
69 void stripnl(char *s
);
70 int mysystem(char *command
);
71 void errorbox(char *message
);
72 void statuswindow(int width
, int height
, char *title
, char *text
, ...);
73 int runcommandwithprogress(int width
, int height
, char *title
, char *command
,
74 int lines
, char *text
, ...);
75 int runcommandwithstatus(char *command
, char *message
);
76 int runhiddencommandwithstatus(char *command
, char *message
);
77 int checkformodule(char *module
);
78 int replace(char filename1
[], char *from
, char *to
);
79 char* get_version(void);
82 int changeaddress(struct keyvalue
*kv
, char *colour
, int typeflag
,
83 char *defaultdhcphostname
);
84 int gettype(char *type
);
85 int setnetaddress(struct keyvalue
*kv
, char *colour
);
86 void networkdialogcallbacktype(newtComponent cm
, void *data
);
87 int interfacecheck(struct keyvalue
*kv
, char *colour
);
88 int probecards(char *driver
, char *driveroptions
);
89 int choosecards(char *driver
, char *driveroptions
);
90 int manualdriver(char *driver
, char *driveroptions
);
92 int findnicdescription(char *modulename
, char *description
);
95 struct keyvalue
*initkeyvalues(void);
96 void freekeyvalues(struct keyvalue
*head
);
97 int readkeyvalues(struct keyvalue
*head
, char *filename
);
98 int writekeyvalues(struct keyvalue
*head
, char *filename
);
99 int findkey(struct keyvalue
*head
, char *key
, char *value
);
100 void appendkeyvalue(struct keyvalue
*head
, char *key
, char *value
);
101 void replacekeyvalue(struct keyvalue
*head
, char *key
, char *value
);