~ubuntu-branches/ubuntu/precise/network-manager/precise

« back to all changes in this revision

Viewing changes to libnm-glib/nm-object-private.h

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-02-09 16:45:41 UTC
  • mfrom: (1.1.53)
  • Revision ID: package-import@ubuntu.com-20120209164541-4h90zknlsfdb7x35
Tags: 0.9.2.0+git201202091925.c721477-0ubuntu1
* upstream snapshot 2012-02-09 19:25:59 (GMT)
  + c721477d11d4fe144111d6d2eec8f93f2e9186c9
* debian/patches/avoid-periodic-disk-wakeups.patch: refreshed.
* debian/patches/nl3-default-ip6-route.patch: refreshed.
* debian/libnm-glib4.symbols: add symbols:
  + nm_active_connection_get_master@Base
  + nm_client_new_async@Base
  + nm_client_new_finish@Base
  + nm_remote_settings_new_async@Base
  + nm_remote_settings_new_finish@Base
  + nm_device_get_state_reason@Base
* debian/libnm-util2.symbols: add symbols:
  + nm_setting_802_1x_get_pac_file@Base
  + nm_setting_infiniband_get_transport_mode@Base

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef NM_OBJECT_PRIVATE_H
24
24
#define NM_OBJECT_PRIVATE_H
25
25
 
26
 
#include <glib.h>
27
 
#include <glib-object.h>
 
26
#include <gio/gio.h>
28
27
#include "nm-object.h"
29
28
 
30
 
typedef gboolean (*PropChangedMarshalFunc) (NMObject *, GParamSpec *, GValue *, gpointer);
 
29
void _nm_object_ensure_inited (NMObject *object);
 
30
 
 
31
typedef gboolean (*PropertyMarshalFunc) (NMObject *, GParamSpec *, GValue *, gpointer);
 
32
 
31
33
typedef GObject * (*NMObjectCreatorFunc) (DBusGConnection *, const char *);
32
34
 
33
35
typedef struct {
34
36
        const char *name;
35
 
        PropChangedMarshalFunc func;
36
37
        gpointer field;
37
 
} NMPropertiesChangedInfo;
38
 
 
39
 
 
40
 
void _nm_object_handle_properties_changed (NMObject *object,
41
 
                                           DBusGProxy *proxy,
42
 
                                           const NMPropertiesChangedInfo *info);
43
 
 
44
 
void _nm_object_process_properties_changed (NMObject *self, GHashTable *properties);
45
 
 
46
 
gboolean _nm_object_demarshal_generic (NMObject *object, GParamSpec *pspec, GValue *value, gpointer field);
 
38
        PropertyMarshalFunc func;
 
39
        GType object_type;
 
40
} NMPropertiesInfo;
 
41
 
 
42
 
 
43
void _nm_object_register_properties (NMObject *object,
 
44
                                                                         DBusGProxy *proxy,
 
45
                                                                         const NMPropertiesInfo *info);
 
46
 
 
47
gboolean _nm_object_reload_properties (NMObject *object, GError **error);
 
48
 
 
49
void     _nm_object_reload_properties_async  (NMObject *object,
 
50
                                              GAsyncReadyCallback callback,
 
51
                                              gpointer user_data);
 
52
gboolean _nm_object_reload_properties_finish (NMObject *object,
 
53
                                              GAsyncResult *result,
 
54
                                              GError **error);
 
55
 
 
56
typedef void (*NMPseudoPropertyChangedFunc) (NMObject *self, NMObject *changed);
 
57
void _nm_object_register_pseudo_property (NMObject *object,
 
58
                                          DBusGProxy *proxy,
 
59
                                          const char *name,
 
60
                                          gpointer field,
 
61
                                          GType object_type,
 
62
                                          NMPseudoPropertyChangedFunc added_func,
 
63
                                          NMPseudoPropertyChangedFunc removed_func);
 
64
void _nm_object_reload_pseudo_property   (NMObject *object,
 
65
                                          const char *name);
47
66
 
48
67
void _nm_object_queue_notify (NMObject *object, const char *property);
49
68
 
 
69
void _nm_object_suppress_property_updates (NMObject *object, gboolean suppress);
 
70
 
50
71
/* DBus property accessors */
51
72
 
52
 
gboolean _nm_object_get_property (NMObject *object,
53
 
                                  const char *interface,
54
 
                                  const char *prop_name,
55
 
                                  GValue *value,
56
 
                                  GError **error);
 
73
void _nm_object_reload_property (NMObject *object,
 
74
                                 const char *interface,
 
75
                                 const char *prop_name);
57
76
 
58
77
void _nm_object_set_property (NMObject *object,
59
78
                              const char *interface,
60
79
                              const char *prop_name,
61
80
                              GValue *value);
62
81
 
63
 
char *_nm_object_get_string_property (NMObject *object,
64
 
                                      const char *interface,
65
 
                                      const char *prop_name,
66
 
                                      GError **error);
67
 
 
68
 
char *_nm_object_get_object_path_property (NMObject *object,
69
 
                                           const char *interface,
70
 
                                           const char *prop_name,
71
 
                                           GError **error);
72
 
 
73
 
gint32 _nm_object_get_int_property (NMObject *object,
74
 
                                    const char *interface,
75
 
                                    const char *prop_name,
76
 
                                    GError **error);
77
 
 
78
 
guint32 _nm_object_get_uint_property (NMObject *object,
79
 
                                      const char *interface,
80
 
                                      const char *prop_name,
81
 
                                      GError **error);
82
 
 
83
 
gboolean _nm_object_get_boolean_property (NMObject *object,
84
 
                                          const char *interface,
85
 
                                          const char *prop_name,
86
 
                                          GError **error);
87
 
 
88
 
gint8 _nm_object_get_byte_property (NMObject *object,
89
 
                                    const char *interface,
90
 
                                    const char *prop_name,
91
 
                                    GError **error);
92
 
 
93
 
gdouble _nm_object_get_double_property (NMObject *object,
94
 
                                        const char *interface,
95
 
                                        const char *prop_name,
96
 
                                        GError **error);
97
 
 
98
 
GByteArray *_nm_object_get_byte_array_property (NMObject *object,
99
 
                                                const char *interface,
100
 
                                                const char *prop_name,
101
 
                                                GError **error);
102
 
 
103
82
static inline const GPtrArray *
104
83
handle_ptr_array_return (GPtrArray *array)
105
84
{
109
88
        return array;
110
89
}
111
90
 
 
91
/* object demarshalling support */
 
92
typedef GType (*NMObjectTypeFunc) (DBusGConnection *, const char *);
 
93
typedef void (*NMObjectTypeCallbackFunc) (GType, gpointer);
 
94
typedef void (*NMObjectTypeAsyncFunc) (DBusGConnection *, const char *, NMObjectTypeCallbackFunc, gpointer);
 
95
 
 
96
void _nm_object_register_type_func (GType base_type, NMObjectTypeFunc type_func,
 
97
                                    NMObjectTypeAsyncFunc type_async_func);
 
98
 
112
99
#endif /* NM_OBJECT_PRIVATE_H */