initial import
[libicd-wpa] / common.h
diff --git a/common.h b/common.h
new file mode 100644 (file)
index 0000000..3f3fca3
--- /dev/null
+++ b/common.h
@@ -0,0 +1,45 @@
+/**
+  @file common.h
+
+  Copyright (C) 2009 Javier S. Pedro
+
+  @author Javier S. Pedro <javispedro@javispedro.com>
+
+  This file is part of libicd-network-wpa.
+
+  This program is free software; you can redistribute it and/or modify it
+  under the terms of the GNU General Public License as published by the
+  Free Software Foundation; either version 2 of the License, or (at your
+  option) any later version.
+
+  This program is distributed in the hope that it will be useful, but
+  WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  General Public License for more details.
+
+  You should have received a copy of the GNU General Public License along
+  with this program; if not, write to the Free Software Foundation, Inc.,
+  59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+
+*/
+
+#ifndef _COMMON_H_
+#define _COMMON_H_
+
+#define WPA_IFACE "wlan0"
+
+#define WPA_NETWORK_TYPE "WLAN_WPA"
+
+#define WPA_GCONF_NETWORK_TYPE "/type"
+#define WPA_GCONF_NETWORK_TYPE_VALUE WPA_NETWORK_TYPE
+
+#define WPA_GCONF_SSID "/wpa_ssid"
+
+#define WPA_GCONF_SETTING_PREFIX "wpa_"
+#define WPA_GCONF_SETTING_PREFIX_LEN 4
+
+#define SEARCH_CONTINUE 0
+#define SEARCH_FINISHED 1
+#define SEARCH_STOPPED 2
+
+#endif