summaryrefslogtreecommitdiff
authorwimpie <wimpie>2004-08-16 23:22:59 (UTC)
committer wimpie <wimpie>2004-08-16 23:22:59 (UTC)
commit502c9b68e4739b6d487bb2ccd98e34535b7d4f77 (patch) (side-by-side diff)
treefa74a3de6a037334c9320f6d646002a8550269b5
parentdb9349d5d67c34fc62dd89e37308b1cb409c60fa (diff)
downloadopie-502c9b68e4739b6d487bb2ccd98e34535b7d4f77.zip
opie-502c9b68e4739b6d487bb2ccd98e34535b7d4f77.tar.gz
opie-502c9b68e4739b6d487bb2ccd98e34535b7d4f77.tar.bz2
Modified config.in so that the compile sequence is now correct
(hopefully) Also applied the Networksettings patch to the wextensions.cpp file
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/bluetooth/config.in4
-rw-r--r--noncore/settings/networksettings2/cable/config.in4
-rw-r--r--noncore/settings/networksettings2/config.in9
-rw-r--r--noncore/settings/networksettings2/irda/config.in4
-rw-r--r--noncore/settings/networksettings2/lancard/config.in4
-rw-r--r--noncore/settings/networksettings2/main.cpp1
-rw-r--r--noncore/settings/networksettings2/modem/config.in4
-rw-r--r--noncore/settings/networksettings2/network/config.in4
-rw-r--r--noncore/settings/networksettings2/networksettings2/config.in6
-rw-r--r--noncore/settings/networksettings2/networksettings2/wextensions.cpp14
-rw-r--r--noncore/settings/networksettings2/ppp/config.in4
-rw-r--r--noncore/settings/networksettings2/profile/config.in4
-rw-r--r--noncore/settings/networksettings2/usb/config.in4
-rw-r--r--noncore/settings/networksettings2/vpn/config.in4
-rw-r--r--noncore/settings/networksettings2/wlan/config.in4
15 files changed, 40 insertions, 34 deletions
diff --git a/noncore/settings/networksettings2/bluetooth/config.in b/noncore/settings/networksettings2/bluetooth/config.in
index e5155e8..b1a5a58 100644
--- a/noncore/settings/networksettings2/bluetooth/config.in
+++ b/noncore/settings/networksettings2/bluetooth/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-bluetooth (set up BLUETOOTH)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n"
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/cable/config.in b/noncore/settings/networksettings2/cable/config.in
index 1cdcaa1..9007f14 100644
--- a/noncore/settings/networksettings2/cable/config.in
+++ b/noncore/settings/networksettings2/cable/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-cable (set up Cable)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/config.in b/noncore/settings/networksettings2/config.in
index 1004ce4..ac38c2f 100644
--- a/noncore/settings/networksettings2/config.in
+++ b/noncore/settings/networksettings2/config.in
@@ -1,5 +1,7 @@
+ source noncore/settings/networksettings2/networksettings2/config.in
+
config NS2
- boolean "opie-networksettings-2 (TCP/IP network settings)"
- default "y"
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE
+ boolean
+ default "y" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN
@@ -21,2 +23 @@ config NS2CORE
source noncore/settings/networksettings2/modem/config.in
- source noncore/settings/networksettings2/networksettings2/config.in
diff --git a/noncore/settings/networksettings2/irda/config.in b/noncore/settings/networksettings2/irda/config.in
index dd86b61..0da9a25 100644
--- a/noncore/settings/networksettings2/irda/config.in
+++ b/noncore/settings/networksettings2/irda/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-irda (set up IRDA)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/lancard/config.in b/noncore/settings/networksettings2/lancard/config.in
index 71fb83e..c694908 100644
--- a/noncore/settings/networksettings2/lancard/config.in
+++ b/noncore/settings/networksettings2/lancard/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-lancard (regular wired lan card)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/main.cpp b/noncore/settings/networksettings2/main.cpp
index b32b323..200e31b 100644
--- a/noncore/settings/networksettings2/main.cpp
+++ b/noncore/settings/networksettings2/main.cpp
@@ -65,2 +65,3 @@ int main( int argc, char * argv[] ) {
Action = ACT_REQUEST;
+ Log(("Request : %s\n", argv[1] ));
}
diff --git a/noncore/settings/networksettings2/modem/config.in b/noncore/settings/networksettings2/modem/config.in
index 1a36636..a354da0 100644
--- a/noncore/settings/networksettings2/modem/config.in
+++ b/noncore/settings/networksettings2/modem/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-modem (set up DIALUP)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/network/config.in b/noncore/settings/networksettings2/network/config.in
index 4c37974..725b7f0 100644
--- a/noncore/settings/networksettings2/network/config.in
+++ b/noncore/settings/networksettings2/network/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-ipsetup (set up TCP/IP)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/networksettings2/config.in b/noncore/settings/networksettings2/networksettings2/config.in
index 907f1a0..2b4e2f3 100644
--- a/noncore/settings/networksettings2/networksettings2/config.in
+++ b/noncore/settings/networksettings2/networksettings2/config.in
@@ -1,4 +1,4 @@
config NS2MAIN
- boolean
- default "y" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2
+ boolean "opie-networksettings2 (TCP/IP network settings)"
+ default "y"
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE
diff --git a/noncore/settings/networksettings2/networksettings2/wextensions.cpp b/noncore/settings/networksettings2/networksettings2/wextensions.cpp
index 778990c..c10bdc3 100644
--- a/noncore/settings/networksettings2/networksettings2/wextensions.cpp
+++ b/noncore/settings/networksettings2/networksettings2/wextensions.cpp
@@ -54,6 +54,6 @@ QString WExtensions::station(){
if ( 0 == ioctl( fd, SIOCGIWNICKN, &iwr )){
- iwr.u.data.pointer[(unsigned int) iwr.u.data.length-1] = '\0';
- return QString(iwr.u.data.pointer);
+ buffer[(unsigned int) iwr.u.data.length-1] = '\0';
+ return (const char *)buffer;
}
- return QString();
+ return QString::null;
}
@@ -66,5 +66,9 @@ QString WExtensions::essid(){
return QString();
+ const char* buffer[200];
+ iwr.u.data.pointer = (caddr_t) buffer;
+ iwr.u.data.length = IW_ESSID_MAX_SIZE;
+ iwr.u.data.flags = 0;
if ( 0 == ioctl( fd, SIOCGIWESSID, &iwr )){
- iwr.u.essid.pointer[(unsigned int) iwr.u.essid.length] = '\0';
- return QString(iwr.u.essid.pointer);
+ buffer[(unsigned int) iwr.u.essid.length] = '\0';
+ return (const char *)buffer;
}
diff --git a/noncore/settings/networksettings2/ppp/config.in b/noncore/settings/networksettings2/ppp/config.in
index 9e3cd35..c722a10 100644
--- a/noncore/settings/networksettings2/ppp/config.in
+++ b/noncore/settings/networksettings2/ppp/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-ppp (set up PPP)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/profile/config.in b/noncore/settings/networksettings2/profile/config.in
index c5f2075..f99ef99 100644
--- a/noncore/settings/networksettings2/profile/config.in
+++ b/noncore/settings/networksettings2/profile/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-profiles (User profiles)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/usb/config.in b/noncore/settings/networksettings2/usb/config.in
index 136806d..d0c6cba 100644
--- a/noncore/settings/networksettings2/usb/config.in
+++ b/noncore/settings/networksettings2/usb/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-usb (set up USB)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/vpn/config.in b/noncore/settings/networksettings2/vpn/config.in
index fff52c3..0d2cb3a 100644
--- a/noncore/settings/networksettings2/vpn/config.in
+++ b/noncore/settings/networksettings2/vpn/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-vpn (set up VPN)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE
diff --git a/noncore/settings/networksettings2/wlan/config.in b/noncore/settings/networksettings2/wlan/config.in
index 328287b..13ef9da 100644
--- a/noncore/settings/networksettings2/wlan/config.in
+++ b/noncore/settings/networksettings2/wlan/config.in
@@ -2,3 +2,3 @@
boolean "opie-networksettings2plugin-wlan (set up Wireless LAN)"
- default "n" if NS2
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2 && NS2CORE
+ default "n" if NS2MAIN
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && NS2MAIN && NS2CORE