wifi: make wireless-helper.h private to src/

The less stuff that needs WEXT the better.
This commit is contained in:
Dan Williams
2011-09-29 17:09:27 -05:00
parent 46437ed525
commit a5c2c47b3e
6 changed files with 5 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
EXTRA_DIST = \ EXTRA_DIST = \
NetworkManager.h \ NetworkManager.h \
NetworkManagerVPN.h \ NetworkManagerVPN.h \
wireless-helper.h \
nm-dbus-glib-types.h \ nm-dbus-glib-types.h \
nm-glib-compat.h \ nm-glib-compat.h \
nm-test-helpers.h \ nm-test-helpers.h \

View File

@@ -28,8 +28,6 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "wireless-helper.h"
#include "nm-client.h" #include "nm-client.h"
#include "nm-device.h" #include "nm-device.h"
#include "nm-device-ethernet.h" #include "nm-device-ethernet.h"

View File

@@ -28,8 +28,6 @@
#include <netinet/ether.h> #include <netinet/ether.h>
#include <dbus/dbus-glib.h> #include <dbus/dbus-glib.h>
#include "wireless-helper.h"
#include "NetworkManager.h" #include "NetworkManager.h"
#include "nm-setting-wireless.h" #include "nm-setting-wireless.h"
#include "nm-param-spec-specialized.h" #include "nm-param-spec-specialized.h"

View File

@@ -31,8 +31,6 @@
#include <errno.h> #include <errno.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "wireless-helper.h"
#include <glib.h> #include <glib.h>
#include <glib-object.h> #include <glib-object.h>
#include <glib/gi18n.h> #include <glib/gi18n.h>
@@ -360,6 +358,8 @@ nm_utils_is_empty_ssid (const guint8 * ssid, int len)
return TRUE; return TRUE;
} }
#define ESSID_MAX_SIZE 32
/** /**
* nm_utils_escape_ssid: * nm_utils_escape_ssid:
* @ssid: pointer to a buffer containing the SSID data * @ssid: pointer to a buffer containing the SSID data
@@ -376,7 +376,7 @@ nm_utils_is_empty_ssid (const guint8 * ssid, int len)
const char * const char *
nm_utils_escape_ssid (const guint8 * ssid, guint32 len) nm_utils_escape_ssid (const guint8 * ssid, guint32 len)
{ {
static char escaped[IW_ESSID_MAX_SIZE * 2 + 1]; static char escaped[ESSID_MAX_SIZE * 2 + 1];
const guint8 *s = ssid; const guint8 *s = ssid;
char *d = escaped; char *d = escaped;
@@ -385,7 +385,7 @@ nm_utils_escape_ssid (const guint8 * ssid, guint32 len)
return escaped; return escaped;
} }
len = MIN (len, (guint32) IW_ESSID_MAX_SIZE); len = MIN (len, (guint32) ESSID_MAX_SIZE);
while (len--) { while (len--) {
if (*s == '\0') { if (*s == '\0') {
*d++ = '\\'; *d++ = '\\';

View File

@@ -118,6 +118,7 @@ NetworkManager_SOURCES = \
nm-device-private.h \ nm-device-private.h \
nm-device-ethernet.c \ nm-device-ethernet.c \
nm-device-ethernet.h \ nm-device-ethernet.h \
wireless-helper.h \
wifi-utils.c \ wifi-utils.c \
wifi-utils.h \ wifi-utils.h \
wifi-utils-private.h \ wifi-utils-private.h \