]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/install+setup/libsmooth/libsmooth.h
Ich hab mal ein bisschen die Arbeit vom Cuebernommen :D
[people/pmueller/ipfire-2.x.git] / src / install+setup / libsmooth / libsmooth.h
index 5ed2dfcd21c5163dd62f8c1baddb424c6f057c30..22d0b073b05bc4984a53baa4767853e70ad9f8fa 100644 (file)
-/* SmoothWall libsmooth.\r
- *\r
- * This program is distributed under the terms of the GNU General Public\r
- * Licence.  See the file COPYING for details.\r
- *\r
- * (c) Lawrence Manning, 2001\r
- * Contains prototypes for library functions.\r
- * \r
- * $Id: libsmooth.h,v 1.4.2.3 2005/10/30 23:25:35 franck78 Exp $\r
- * \r
- */\r
-\r
-#ifndef ___LIBSMOOTH_H\r
-#define ___LIBSMOOTH_H\r
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-#include <ctype.h>\r
-#include <wchar.h>\r
-#include <locale.h>\r
-#include <unistd.h>\r
-#include <sys/file.h>\r
-#include <sys/types.h>\r
-#include <sys/stat.h>\r
-#include <fcntl.h>\r
-#include <newt.h>\r
-#include <dirent.h>\r
-#include <sys/mount.h>\r
-\r
-#include <sys/socket.h>\r
-#include <netinet/in.h>\r
-#include <arpa/inet.h>\r
-\r
-#include <linux/cdrom.h>\r
-#include <sys/ioctl.h>\r
-\r
-#include "langs.h"\r
-\r
-#define STRING_SIZE 1023\r
-\r
-#define ADDRESS 0\r
-#define NETADDRESS 1\r
-#define NETMASK 2\r
-#define DHCP 3\r
-#define NETCHANGE_TOTAL 4\r
-\r
-struct keyvalue\r
-{\r
-       char key[STRING_SIZE];\r
-       char value[STRING_SIZE];\r
-       struct keyvalue *next;  \r
-};\r
-\r
-/* for stuff in net.c */\r
-struct nic\r
-{\r
-       char *description;\r
-       char *modulename;\r
-};\r
-\r
-/* libsmooth.c */\r
-void reboot(void);\r
-void stripnl(char *s);\r
-int mysystem(char *command);\r
-void errorbox(char *message);\r
-void statuswindow(int width, int height, char *title, char *text, ...);\r
-int runcommandwithprogress(int width, int height, char *title, char *command,\r
-       int lines, char *text, ...);\r
-int runcommandwithstatus(char *command, char *message);\r
-int runhiddencommandwithstatus(char *command, char *message);\r
-int checkformodule(char *module); \r
-int replace(char filename1[], char *from, char *to);\r
-char* get_version(void);\r
-                                \r
-/* netstuff.c */\r
-int changeaddress(struct keyvalue *kv, char *colour, int typeflag,\r
-       char *defaultdhcphostname);\r
-int gettype(char *type);\r
-int setnetaddress(struct keyvalue *kv, char *colour);\r
-void networkdialogcallbacktype(newtComponent cm, void *data);\r
-int interfacecheck(struct keyvalue *kv, char *colour);\r
-int probecards(char *driver, char *driveroptions);\r
-int choosecards(char *driver, char *driveroptions);\r
-int manualdriver(char *driver, char *driveroptions);\r
-int countcards(void);\r
-int findnicdescription(char *modulename, char *description);\r
-         \r
-/* data.c */\r
-struct keyvalue *initkeyvalues(void);\r
-void freekeyvalues(struct keyvalue *head);\r
-int readkeyvalues(struct keyvalue *head, char *filename);\r
-int writekeyvalues(struct keyvalue *head, char *filename);\r
-int findkey(struct keyvalue *head, char *key, char *value);\r
-void appendkeyvalue(struct keyvalue *head, char *key, char *value);\r
-void replacekeyvalue(struct keyvalue *head, char *key, char *value);\r
-\r
-#endif\r
-\r
+/* SmoothWall libsmooth.
+ *
+ * This program is distributed under the terms of the GNU General Public
+ * Licence.  See the file COPYING for details.
+ *
+ * (c) Lawrence Manning, 2001
+ * Contains prototypes for library functions.
+ * 
+ * $Id: libsmooth.h,v 1.4.2.3 2005/10/30 23:25:35 franck78 Exp $
+ * 
+ */
+
+#ifndef ___LIBSMOOTH_H
+#define ___LIBSMOOTH_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
+#include <wchar.h>
+#include <locale.h>
+#include <unistd.h>
+#include <sys/file.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <newt.h>
+#include <dirent.h>
+#include <sys/mount.h>
+
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
+#include <linux/cdrom.h>
+#include <sys/ioctl.h>
+
+#include "langs.h"
+
+#define STRING_SIZE 1023
+
+#define ADDRESS 0
+#define NETADDRESS 1
+#define NETMASK 2
+#define DHCP 3
+#define NETCHANGE_TOTAL 4
+
+struct keyvalue
+{
+       char key[STRING_SIZE];
+       char value[STRING_SIZE];
+       struct keyvalue *next;  
+};
+
+/* for stuff in net.c */
+struct nic
+{
+       char *description;
+       char *modulename;
+};
+struct driver
+{
+       char *description;
+       char *modulename;
+};
+
+/* libsmooth.c */
+void reboot(void);
+void stripnl(char *s);
+int mysystem(char *command);
+void errorbox(char *message);
+void statuswindow(int width, int height, char *title, char *text, ...);
+int runcommandwithprogress(int width, int height, char *title, char *command,
+       int lines, char *text, ...);
+int runcommandwithstatus(char *command, char *message);
+int runhiddencommandwithstatus(char *command, char *message);
+int checkformodule(char *module); 
+int replace(char filename1[], char *from, char *to);
+char* get_version(void);
+                                
+/* netstuff.c */
+int changeaddress(struct keyvalue *kv, char *colour, int typeflag,
+       char *defaultdhcphostname);
+int gettype(char *type);
+int setnetaddress(struct keyvalue *kv, char *colour);
+void networkdialogcallbacktype(newtComponent cm, void *data);
+int interfacecheck(struct keyvalue *kv, char *colour);
+int probecards(char *driver, char *driveroptions);
+int choosecards(char *driver, char *driveroptions);
+int manualdriver(char *driver, char *driveroptions);
+int countcards(void);
+int findnicdescription(char *modulename, char *description);
+         
+/* data.c */
+struct keyvalue *initkeyvalues(void);
+void freekeyvalues(struct keyvalue *head);
+int readkeyvalues(struct keyvalue *head, char *filename);
+int writekeyvalues(struct keyvalue *head, char *filename);
+int findkey(struct keyvalue *head, char *key, char *value);
+void appendkeyvalue(struct keyvalue *head, char *key, char *value);
+void replacekeyvalue(struct keyvalue *head, char *key, char *value);
+
+#endif
+