Introduce matching structs for the new "object" based DBus API. --- src/lib/nm/E_Nm.h | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-)
diff --git a/src/lib/nm/E_Nm.h b/src/lib/nm/E_Nm.h index e0300e5..9593c63 100644 --- a/src/lib/nm/E_Nm.h +++ b/src/lib/nm/E_Nm.h @@ -2,6 +2,7 @@ #define E_HM_H #include <E_DBus.h> +#include <Ecore_Data.h> #ifdef EAPI #undef EAPI @@ -26,6 +27,77 @@ typedef struct E_NM_Context E_NM_Context; +/** + * Matching structs for the new "object" based DBus API + * VPN is missing as this was still missing the redesign for the new 0.7 API + */ +typedef struct E_NM_Device E_NM_Device; +struct E_NM_Device +{ + char *udi; /* object_path */ + char *interface; + char *driver; + uint capabilities; + int ip4address; + uint state; + char *ip4config; /* object_path */ + int carrier; + uint type; +}; + +typedef struct E_NM_Device_Wireless E_NM_Device_Wireless; +struct E_NM_Device_Wireless +{ + char *hwaddress; + int mode; + uint bitrate; + char *activeaccesspoint; /* object_path */ + uint wirelesscapabilities; +}; + +typedef struct E_NM_Device_Wired E_NM_Device_Wired; +struct E_NM_Device_Wired +{ + char *hwaddress; + uint speed; +}; + +typedef struct E_NM_Access_Point E_NM_Access_Point; +struct E_NM_Access_Point +{ + uint flags; + uint wpaflags; + uint rsnflags; + char *ssid; + uint frequency; + char *hwaddress; + int mode; + uint rate; + uint strength; +}; + +typedef struct E_NM_IP4Config E_NM_IP4Config; +struct E_NM_IP4Config +{ + uint address; + uint gateway; + uint netmask; + uint broadcast; + char *hostname; + Ecore_List *nameserver; /* uints */ + Ecore_List *domains; /* char* */ + char *nisdomain; + Ecore_List *nisserver; /* uints */ +}; + +typedef struct E_NM_Manager E_NM_Manager; +struct E_NM_Manager +{ + int wirelessenabled; /* writeable*/ + int wirelesshardwareenabled; + uint state; +}; + typedef void (*E_NM_Cb_Manager_State_Change) (void *data, int state); typedef void (*E_NM_Cb_Manager_Device_Added) (void *data, const char *device); typedef void (*E_NM_Cb_Manager_Device_Removed) (void *data, const char *device); -- 1.5.4.3 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel