libnm-glib: add class padding for future expansion

This commit is contained in:
Dan Williams
2009-09-30 09:20:44 -07:00
parent 0596068561
commit 866d48bb9b
25 changed files with 209 additions and 9 deletions

View File

@@ -38,15 +38,15 @@ G_BEGIN_DECLS
#define NM_IS_ACCESS_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_ACCESS_POINT)) #define NM_IS_ACCESS_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_ACCESS_POINT))
#define NM_ACCESS_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_ACCESS_POINT, NMAccessPointClass)) #define NM_ACCESS_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_ACCESS_POINT, NMAccessPointClass))
#define NM_ACCESS_POINT_FLAGS "flags" #define NM_ACCESS_POINT_FLAGS "flags"
#define NM_ACCESS_POINT_WPA_FLAGS "wpa-flags" #define NM_ACCESS_POINT_WPA_FLAGS "wpa-flags"
#define NM_ACCESS_POINT_RSN_FLAGS "rsn-flags" #define NM_ACCESS_POINT_RSN_FLAGS "rsn-flags"
#define NM_ACCESS_POINT_SSID "ssid" #define NM_ACCESS_POINT_SSID "ssid"
#define NM_ACCESS_POINT_FREQUENCY "frequency" #define NM_ACCESS_POINT_FREQUENCY "frequency"
#define NM_ACCESS_POINT_HW_ADDRESS "hw-address" #define NM_ACCESS_POINT_HW_ADDRESS "hw-address"
#define NM_ACCESS_POINT_MODE "mode" #define NM_ACCESS_POINT_MODE "mode"
#define NM_ACCESS_POINT_MAX_BITRATE "max-bitrate" #define NM_ACCESS_POINT_MAX_BITRATE "max-bitrate"
#define NM_ACCESS_POINT_STRENGTH "strength" #define NM_ACCESS_POINT_STRENGTH "strength"
typedef struct { typedef struct {
NMObject parent; NMObject parent;
@@ -54,6 +54,14 @@ typedef struct {
typedef struct { typedef struct {
NMObjectClass parent; NMObjectClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMAccessPointClass; } NMAccessPointClass;
GType nm_access_point_get_type (void); GType nm_access_point_get_type (void);

View File

@@ -52,6 +52,14 @@ typedef struct {
typedef struct { typedef struct {
NMObjectClass parent; NMObjectClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMActiveConnectionClass; } NMActiveConnectionClass;
GType nm_active_connection_get_type (void); GType nm_active_connection_get_type (void);

View File

@@ -41,6 +41,14 @@ typedef struct {
typedef struct { typedef struct {
NMSerialDeviceClass parent; NMSerialDeviceClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMCdmaDeviceClass; } NMCdmaDeviceClass;
GType nm_cdma_device_get_type (void); GType nm_cdma_device_get_type (void);

View File

@@ -57,6 +57,14 @@ typedef struct {
/* Signals */ /* Signals */
void (*device_added) (NMClient *client, NMDevice *device); void (*device_added) (NMClient *client, NMDevice *device);
void (*device_removed) (NMClient *client, NMDevice *device); void (*device_removed) (NMClient *client, NMDevice *device);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMClientClass; } NMClientClass;
GType nm_client_get_type (void); GType nm_client_get_type (void);

View File

@@ -46,6 +46,14 @@ typedef struct {
typedef struct { typedef struct {
NMDeviceClass parent; NMDeviceClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMDeviceBtClass; } NMDeviceBtClass;
GType nm_device_bt_get_type (void); GType nm_device_bt_get_type (void);

View File

@@ -45,6 +45,14 @@ typedef struct {
typedef struct { typedef struct {
NMDeviceClass parent; NMDeviceClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMDeviceEthernetClass; } NMDeviceEthernetClass;
GType nm_device_ethernet_get_type (void); GType nm_device_ethernet_get_type (void);

View File

@@ -52,6 +52,14 @@ typedef struct {
/* Signals */ /* Signals */
void (*access_point_added) (NMDeviceWifi *device, NMAccessPoint *ap); void (*access_point_added) (NMDeviceWifi *device, NMAccessPoint *ap);
void (*access_point_removed) (NMDeviceWifi *device, NMAccessPoint *ap); void (*access_point_removed) (NMDeviceWifi *device, NMAccessPoint *ap);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMDeviceWifiClass; } NMDeviceWifiClass;
GType nm_device_wifi_get_type (void); GType nm_device_wifi_get_type (void);

View File

@@ -67,6 +67,14 @@ typedef struct {
NMDeviceState new_state, NMDeviceState new_state,
NMDeviceState old_state, NMDeviceState old_state,
NMDeviceStateReason reason); NMDeviceStateReason reason);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMDeviceClass; } NMDeviceClass;
GType nm_device_get_type (void); GType nm_device_get_type (void);

View File

@@ -43,6 +43,14 @@ typedef struct {
typedef struct { typedef struct {
NMObjectClass parent; NMObjectClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMDHCP4ConfigClass; } NMDHCP4ConfigClass;
#define NM_DHCP4_CONFIG_OPTIONS "options" #define NM_DHCP4_CONFIG_OPTIONS "options"

View File

@@ -55,6 +55,14 @@ typedef struct {
const gchar **hints, const gchar **hints,
gboolean request_new, gboolean request_new,
DBusGMethodInvocation *context); DBusGMethodInvocation *context);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMExportedConnectionClass; } NMExportedConnectionClass;
GType nm_exported_connection_get_type (void); GType nm_exported_connection_get_type (void);

View File

@@ -41,6 +41,14 @@ typedef struct {
typedef struct { typedef struct {
NMSerialDeviceClass parent; NMSerialDeviceClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMGsmDeviceClass; } NMGsmDeviceClass;
GType nm_gsm_device_get_type (void); GType nm_gsm_device_get_type (void);

View File

@@ -44,6 +44,14 @@ typedef struct {
typedef struct { typedef struct {
NMObjectClass parent; NMObjectClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMIP4ConfigClass; } NMIP4ConfigClass;
#define NM_IP4_CONFIG_ADDRESSES "addresses" #define NM_IP4_CONFIG_ADDRESSES "addresses"

View File

@@ -44,6 +44,14 @@ typedef struct {
typedef struct { typedef struct {
NMObjectClass parent; NMObjectClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMIP6ConfigClass; } NMIP6ConfigClass;
#define NM_IP6_CONFIG_ADDRESSES "addresses" #define NM_IP6_CONFIG_ADDRESSES "addresses"

View File

@@ -46,6 +46,14 @@ typedef struct {
typedef struct { typedef struct {
GObjectClass parent; GObjectClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMObjectClass; } NMObjectClass;
GType nm_object_get_type (void); GType nm_object_get_type (void);

View File

@@ -44,6 +44,14 @@ typedef struct {
typedef struct { typedef struct {
NMConnectionClass parent_class; NMConnectionClass parent_class;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMRemoteConnectionClass; } NMRemoteConnectionClass;
GType nm_remote_connection_get_type (void); GType nm_remote_connection_get_type (void);

View File

@@ -45,6 +45,14 @@ typedef struct {
typedef struct { typedef struct {
NMRemoteSettingsClass parent; NMRemoteSettingsClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMRemoteSettingsSystemClass; } NMRemoteSettingsSystemClass;
GType nm_remote_settings_system_get_type (void); GType nm_remote_settings_system_get_type (void);

View File

@@ -48,6 +48,14 @@ typedef struct {
typedef struct { typedef struct {
GObjectClass parent; GObjectClass parent;
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMRemoteSettingsClass; } NMRemoteSettingsClass;
GType nm_remote_settings_get_type (void); GType nm_remote_settings_get_type (void);

View File

@@ -43,6 +43,14 @@ typedef struct {
/* Signals */ /* Signals */
void (*ppp_stats) (NMSerialDevice *self, guint32 in_bytes, guint32 out_bytes); void (*ppp_stats) (NMSerialDevice *self, guint32 in_bytes, guint32 out_bytes);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMSerialDeviceClass; } NMSerialDeviceClass;
GType nm_serial_device_get_type (void); GType nm_serial_device_get_type (void);

View File

@@ -81,6 +81,14 @@ struct _NMSettingsConnectionInterface {
GHashTable *new_settings); GHashTable *new_settings);
void (*removed) (NMSettingsConnectionInterface *connection); void (*removed) (NMSettingsConnectionInterface *connection);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
}; };
GType nm_settings_connection_interface_get_type (void); GType nm_settings_connection_interface_get_type (void);

View File

@@ -77,6 +77,14 @@ struct _NMSettingsInterface {
NMSettingsConnectionInterface *connection); NMSettingsConnectionInterface *connection);
void (*connections_read) (NMSettingsInterface *settings); void (*connections_read) (NMSettingsInterface *settings);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
}; };
GType nm_settings_interface_get_type (void); GType nm_settings_interface_get_type (void);

View File

@@ -56,6 +56,14 @@ typedef struct {
DBusGMethodInvocation *context, /* Only present for D-Bus calls */ DBusGMethodInvocation *context, /* Only present for D-Bus calls */
NMSettingsAddConnectionFunc callback, NMSettingsAddConnectionFunc callback,
gpointer user_data); gpointer user_data);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMSettingsServiceClass; } NMSettingsServiceClass;
GType nm_settings_service_get_type (void); GType nm_settings_service_get_type (void);

View File

@@ -79,6 +79,14 @@ struct _NMSettingsSystemInterface {
/* Signals */ /* Signals */
void (*check_permissions) (NMSettingsSystemInterface *settings); void (*check_permissions) (NMSettingsSystemInterface *settings);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
}; };
GType nm_settings_system_interface_get_type (void); GType nm_settings_system_interface_get_type (void);

View File

@@ -50,6 +50,14 @@ typedef struct {
void (*vpn_state_changed) (NMVPNConnection *connection, void (*vpn_state_changed) (NMVPNConnection *connection,
NMVPNConnectionState state, NMVPNConnectionState state,
NMVPNConnectionStateReason reason); NMVPNConnectionStateReason reason);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMVPNConnectionClass; } NMVPNConnectionClass;
GType nm_vpn_connection_get_type (void); GType nm_vpn_connection_get_type (void);

View File

@@ -112,6 +112,14 @@ struct _NMVpnPluginUiInterface {
* related to the connection. * related to the connection.
*/ */
gboolean (*delete_connection) (NMVpnPluginUiInterface *iface, NMConnection *connection, GError **error); gboolean (*delete_connection) (NMVpnPluginUiInterface *iface, NMConnection *connection, GError **error);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
}; };
GType nm_vpn_plugin_ui_interface_get_type (void); GType nm_vpn_plugin_ui_interface_get_type (void);

View File

@@ -91,6 +91,14 @@ typedef struct {
NMVPNPluginFailure reason); NMVPNPluginFailure reason);
void (*quit) (NMVPNPlugin *plugin); void (*quit) (NMVPNPlugin *plugin);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMVPNPluginClass; } NMVPNPluginClass;
GType nm_vpn_plugin_get_type (void); GType nm_vpn_plugin_get_type (void);