diff options
author | Thomas Haller <thaller@redhat.com> | 2014-11-12 15:27:35 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-11-19 12:58:36 +0100 |
commit | b0b7473af1e6358fa5b694301f89f74c5bd79587 (patch) | |
tree | 5b319f31abf5705f4f81ac1f114e5af8646617c2 /src/nm-firewall-manager.h | |
parent | b2a3cf4f1db4356bc99b0f1af518600072cb606a (diff) | |
download | NetworkManager-b0b7473af1e6358fa5b694301f89f74c5bd79587.tar.gz |
firewall: make call handle an opaque pointer type
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/nm-firewall-manager.h')
-rw-r--r-- | src/nm-firewall-manager.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/nm-firewall-manager.h b/src/nm-firewall-manager.h index 5ccbc72341..84cb5498ae 100644 --- a/src/nm-firewall-manager.h +++ b/src/nm-firewall-manager.h @@ -40,6 +40,9 @@ G_BEGIN_DECLS #define NM_FIREWALL_MANAGER_AVAILABLE "available" +struct _NMFirewallPendingCall; +typedef struct _NMFirewallPendingCall *NMFirewallPendingCall; + typedef struct { GObject parent; } NMFirewallManager; @@ -57,16 +60,16 @@ NMFirewallManager *nm_firewall_manager_get (void); typedef void (*FwAddToZoneFunc) (GError *error, gpointer user_data); -gpointer nm_firewall_manager_add_or_change_zone (NMFirewallManager *mgr, - const char *iface, - const char *zone, - gboolean add, - FwAddToZoneFunc callback, - gpointer user_data); -gpointer nm_firewall_manager_remove_from_zone (NMFirewallManager *mgr, - const char *iface, - const char *zone); - -void nm_firewall_manager_cancel_call (NMFirewallManager *mgr, gpointer fw_call); +NMFirewallPendingCall nm_firewall_manager_add_or_change_zone (NMFirewallManager *mgr, + const char *iface, + const char *zone, + gboolean add, + FwAddToZoneFunc callback, + gpointer user_data); +NMFirewallPendingCall nm_firewall_manager_remove_from_zone (NMFirewallManager *mgr, + const char *iface, + const char *zone); + +void nm_firewall_manager_cancel_call (NMFirewallManager *mgr, NMFirewallPendingCall fw_call); #endif /* __NETWORKMANAGER_FIREWALL_MANAGER_H__ */ |