mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 17:00:08 +01:00
Make NMDevice abstract class, remove almost all references to it's subclasses (the last place gets removed with new policy manager). Add NMDeviceInterface (which NMDevice implements) so that when we have NMDevice exported over DBUS, there's a common NMDevice interface which all instances have, plus there's a device specific interface for each specific type. Remove functions (nm_device_is_802_3_ethernet) and (nm_device_is_802_11_wireless). There are already standard GObject macros for type safe checks. Use the updated supplican manager API. * src/nm-device-interface.h: * src/nm-device-interface.c: * src/nm-call-store.h: * src/nm-call-store.c: Implement. * src/supplicant-manager/nm-supplicant-interface.c: * src/supplicant-manager/nm-supplicant-interface.h: * src/supplicant-manager/nm-supplicant-manager.c: * src/supplicant-manager/nm-supplicant-manager.h: - Remove all private data type references from public header files. - Remove all references to other NM classes, this class is just a proxy between wpa_supplicant and NM so it doesn't have to know any internals. - Convert to dbus-glib bindings. - Type safe checks for public methods' arguments. - Store pending DBUS call ids to NMCallStore. * src/supplicant-manager/nm-supplicant-config.c: - Store config values in a GHashTable instead of GSList. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2285 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
27 lines
772 B
C
27 lines
772 B
C
#ifndef NM_CALLBACK_STORE_H
|
|
#define NM_CALLBACK_STORE_H
|
|
|
|
#include <glib-object.h>
|
|
|
|
typedef GHashTable NMCallStore;
|
|
|
|
typedef gboolean (*NMCallStoreFunc) (GObject *object, gpointer call_id, gpointer user_data);
|
|
|
|
NMCallStore *nm_call_store_new (void);
|
|
void nm_call_store_add (NMCallStore *store,
|
|
GObject *object,
|
|
gpointer *call_id);
|
|
|
|
void nm_call_store_remove (NMCallStore *store,
|
|
GObject *object,
|
|
gpointer call_id);
|
|
|
|
int nm_call_store_foreach (NMCallStore *store,
|
|
GObject *object,
|
|
NMCallStoreFunc callback,
|
|
gpointer user_data);
|
|
|
|
void nm_call_store_clear (NMCallStore *store);
|
|
void nm_call_store_destroy (NMCallStore *store);
|
|
|
|
#endif /* NM_CALLBACK_STORE_H */
|