Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Generated by gdbus-codegen 2.40.2. DO NOT EDIT. |
| 3 | * |
| 4 | * The license of this code is the same as for the source it was derived from. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __INTERFACES_SENSOR_H__ |
| 8 | #define __INTERFACES_SENSOR_H__ |
| 9 | |
| 10 | #include <gio/gio.h> |
| 11 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
| 14 | |
| 15 | /* ------------------------------------------------------------------------ */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 16 | /* Declarations for org.openbmc.SensorValue */ |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 17 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 18 | #define TYPE_SENSOR_VALUE (sensor_value_get_type ()) |
| 19 | #define SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE, SensorValue)) |
| 20 | #define IS_SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE)) |
| 21 | #define SENSOR_VALUE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_VALUE, SensorValueIface)) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 22 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 23 | struct _SensorValue; |
| 24 | typedef struct _SensorValue SensorValue; |
| 25 | typedef struct _SensorValueIface SensorValueIface; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 26 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 27 | struct _SensorValueIface |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 28 | { |
| 29 | GTypeInterface parent_iface; |
| 30 | |
| 31 | |
| 32 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 33 | gboolean (*handle_get_value) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 34 | SensorValue *object, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 35 | GDBusMethodInvocation *invocation); |
| 36 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 37 | gboolean (*handle_init) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 38 | SensorValue *object, |
Norman James | e759492 | 2015-08-27 14:25:24 -0500 | [diff] [blame] | 39 | GDBusMethodInvocation *invocation); |
| 40 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 41 | gboolean (*handle_set_value) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 42 | SensorValue *object, |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 43 | GDBusMethodInvocation *invocation, |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 44 | GVariant *arg_value); |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 45 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 46 | gint (*get_heatbeat) (SensorValue *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 47 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 48 | gint (*get_poll_interval) (SensorValue *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 49 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 50 | const gchar * (*get_units) (SensorValue *object); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 51 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 52 | GVariant * (*get_value) (SensorValue *object); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 53 | |
| 54 | void (*changed) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 55 | SensorValue *object, |
| 56 | GVariant *arg_value, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 57 | const gchar *arg_units); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 58 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 59 | void (*heartbeat) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 60 | SensorValue *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 61 | const gchar *arg_bus_name); |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 62 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 63 | }; |
| 64 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 65 | GType sensor_value_get_type (void) G_GNUC_CONST; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 66 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 67 | GDBusInterfaceInfo *sensor_value_interface_info (void); |
| 68 | guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 69 | |
| 70 | |
| 71 | /* D-Bus method call completion functions: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 72 | void sensor_value_complete_init ( |
| 73 | SensorValue *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 74 | GDBusMethodInvocation *invocation); |
| 75 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 76 | void sensor_value_complete_get_value ( |
| 77 | SensorValue *object, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 78 | GDBusMethodInvocation *invocation, |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 79 | GVariant *value); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 80 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 81 | void sensor_value_complete_set_value ( |
| 82 | SensorValue *object, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 83 | GDBusMethodInvocation *invocation); |
| 84 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 85 | |
| 86 | |
| 87 | /* D-Bus signal emissions functions: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 88 | void sensor_value_emit_changed ( |
| 89 | SensorValue *object, |
| 90 | GVariant *arg_value, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 91 | const gchar *arg_units); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 92 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 93 | void sensor_value_emit_heartbeat ( |
| 94 | SensorValue *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 95 | const gchar *arg_bus_name); |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 96 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 97 | |
| 98 | |
| 99 | /* D-Bus method calls: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 100 | void sensor_value_call_init ( |
| 101 | SensorValue *proxy, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 102 | GCancellable *cancellable, |
| 103 | GAsyncReadyCallback callback, |
| 104 | gpointer user_data); |
| 105 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 106 | gboolean sensor_value_call_init_finish ( |
| 107 | SensorValue *proxy, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 108 | GAsyncResult *res, |
| 109 | GError **error); |
| 110 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 111 | gboolean sensor_value_call_init_sync ( |
| 112 | SensorValue *proxy, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 113 | GCancellable *cancellable, |
| 114 | GError **error); |
| 115 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 116 | void sensor_value_call_get_value ( |
| 117 | SensorValue *proxy, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 118 | GCancellable *cancellable, |
| 119 | GAsyncReadyCallback callback, |
| 120 | gpointer user_data); |
| 121 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 122 | gboolean sensor_value_call_get_value_finish ( |
| 123 | SensorValue *proxy, |
| 124 | GVariant **out_value, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 125 | GAsyncResult *res, |
| 126 | GError **error); |
| 127 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 128 | gboolean sensor_value_call_get_value_sync ( |
| 129 | SensorValue *proxy, |
| 130 | GVariant **out_value, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 131 | GCancellable *cancellable, |
| 132 | GError **error); |
| 133 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 134 | void sensor_value_call_set_value ( |
| 135 | SensorValue *proxy, |
| 136 | GVariant *arg_value, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 137 | GCancellable *cancellable, |
| 138 | GAsyncReadyCallback callback, |
| 139 | gpointer user_data); |
| 140 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 141 | gboolean sensor_value_call_set_value_finish ( |
| 142 | SensorValue *proxy, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 143 | GAsyncResult *res, |
| 144 | GError **error); |
| 145 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 146 | gboolean sensor_value_call_set_value_sync ( |
| 147 | SensorValue *proxy, |
| 148 | GVariant *arg_value, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 149 | GCancellable *cancellable, |
| 150 | GError **error); |
| 151 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 152 | |
| 153 | |
| 154 | /* D-Bus property accessors: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 155 | GVariant *sensor_value_get_value (SensorValue *object); |
| 156 | GVariant *sensor_value_dup_value (SensorValue *object); |
| 157 | void sensor_value_set_value (SensorValue *object, GVariant *value); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 158 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 159 | const gchar *sensor_value_get_units (SensorValue *object); |
| 160 | gchar *sensor_value_dup_units (SensorValue *object); |
| 161 | void sensor_value_set_units (SensorValue *object, const gchar *value); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 162 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 163 | gint sensor_value_get_poll_interval (SensorValue *object); |
| 164 | void sensor_value_set_poll_interval (SensorValue *object, gint value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 165 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 166 | gint sensor_value_get_heatbeat (SensorValue *object); |
| 167 | void sensor_value_set_heatbeat (SensorValue *object, gint value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 168 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 169 | |
| 170 | /* ---- */ |
| 171 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 172 | #define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ()) |
| 173 | #define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy)) |
| 174 | #define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| 175 | #define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| 176 | #define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY)) |
| 177 | #define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY)) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 178 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 179 | typedef struct _SensorValueProxy SensorValueProxy; |
| 180 | typedef struct _SensorValueProxyClass SensorValueProxyClass; |
| 181 | typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 182 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 183 | struct _SensorValueProxy |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 184 | { |
| 185 | /*< private >*/ |
| 186 | GDBusProxy parent_instance; |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 187 | SensorValueProxyPrivate *priv; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 188 | }; |
| 189 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 190 | struct _SensorValueProxyClass |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 191 | { |
| 192 | GDBusProxyClass parent_class; |
| 193 | }; |
| 194 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 195 | GType sensor_value_proxy_get_type (void) G_GNUC_CONST; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 196 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 197 | void sensor_value_proxy_new ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 198 | GDBusConnection *connection, |
| 199 | GDBusProxyFlags flags, |
| 200 | const gchar *name, |
| 201 | const gchar *object_path, |
| 202 | GCancellable *cancellable, |
| 203 | GAsyncReadyCallback callback, |
| 204 | gpointer user_data); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 205 | SensorValue *sensor_value_proxy_new_finish ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 206 | GAsyncResult *res, |
| 207 | GError **error); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 208 | SensorValue *sensor_value_proxy_new_sync ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 209 | GDBusConnection *connection, |
| 210 | GDBusProxyFlags flags, |
| 211 | const gchar *name, |
| 212 | const gchar *object_path, |
| 213 | GCancellable *cancellable, |
| 214 | GError **error); |
| 215 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 216 | void sensor_value_proxy_new_for_bus ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 217 | GBusType bus_type, |
| 218 | GDBusProxyFlags flags, |
| 219 | const gchar *name, |
| 220 | const gchar *object_path, |
| 221 | GCancellable *cancellable, |
| 222 | GAsyncReadyCallback callback, |
| 223 | gpointer user_data); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 224 | SensorValue *sensor_value_proxy_new_for_bus_finish ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 225 | GAsyncResult *res, |
| 226 | GError **error); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 227 | SensorValue *sensor_value_proxy_new_for_bus_sync ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 228 | GBusType bus_type, |
| 229 | GDBusProxyFlags flags, |
| 230 | const gchar *name, |
| 231 | const gchar *object_path, |
| 232 | GCancellable *cancellable, |
| 233 | GError **error); |
| 234 | |
| 235 | |
| 236 | /* ---- */ |
| 237 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 238 | #define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ()) |
| 239 | #define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton)) |
| 240 | #define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| 241 | #define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| 242 | #define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON)) |
| 243 | #define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON)) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 244 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 245 | typedef struct _SensorValueSkeleton SensorValueSkeleton; |
| 246 | typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass; |
| 247 | typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 248 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 249 | struct _SensorValueSkeleton |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 250 | { |
| 251 | /*< private >*/ |
| 252 | GDBusInterfaceSkeleton parent_instance; |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 253 | SensorValueSkeletonPrivate *priv; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 254 | }; |
| 255 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 256 | struct _SensorValueSkeletonClass |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 257 | { |
| 258 | GDBusInterfaceSkeletonClass parent_class; |
| 259 | }; |
| 260 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 261 | GType sensor_value_skeleton_get_type (void) G_GNUC_CONST; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 262 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 263 | SensorValue *sensor_value_skeleton_new (void); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 264 | |
| 265 | |
| 266 | /* ------------------------------------------------------------------------ */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 267 | /* Declarations for org.openbmc.SensorThreshold */ |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 268 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 269 | #define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ()) |
| 270 | #define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold)) |
| 271 | #define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD)) |
| 272 | #define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface)) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 273 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 274 | struct _SensorThreshold; |
| 275 | typedef struct _SensorThreshold SensorThreshold; |
| 276 | typedef struct _SensorThresholdIface SensorThresholdIface; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 277 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 278 | struct _SensorThresholdIface |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 279 | { |
| 280 | GTypeInterface parent_iface; |
| 281 | |
| 282 | |
| 283 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 284 | gboolean (*handle_get_state) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 285 | SensorThreshold *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 286 | GDBusMethodInvocation *invocation); |
| 287 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 288 | GVariant * (*get_lower_critical) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 289 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 290 | GVariant * (*get_lower_warning) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 291 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 292 | guchar (*get_state) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 293 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 294 | GVariant * (*get_upper_critical) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 295 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 296 | GVariant * (*get_upper_warning) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 297 | |
| 298 | void (*critical) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 299 | SensorThreshold *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 300 | |
| 301 | void (*normal) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 302 | SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 303 | |
| 304 | void (*warning) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 305 | SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 306 | |
| 307 | }; |
| 308 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 309 | GType sensor_threshold_get_type (void) G_GNUC_CONST; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 310 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 311 | GDBusInterfaceInfo *sensor_threshold_interface_info (void); |
| 312 | guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 313 | |
| 314 | |
| 315 | /* D-Bus method call completion functions: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 316 | void sensor_threshold_complete_get_state ( |
| 317 | SensorThreshold *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 318 | GDBusMethodInvocation *invocation, |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 319 | guchar state); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 320 | |
| 321 | |
| 322 | |
| 323 | /* D-Bus signal emissions functions: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 324 | void sensor_threshold_emit_warning ( |
| 325 | SensorThreshold *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 326 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 327 | void sensor_threshold_emit_critical ( |
| 328 | SensorThreshold *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 329 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 330 | void sensor_threshold_emit_normal ( |
| 331 | SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 332 | |
| 333 | |
| 334 | |
| 335 | /* D-Bus method calls: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 336 | void sensor_threshold_call_get_state ( |
| 337 | SensorThreshold *proxy, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 338 | GCancellable *cancellable, |
| 339 | GAsyncReadyCallback callback, |
| 340 | gpointer user_data); |
| 341 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 342 | gboolean sensor_threshold_call_get_state_finish ( |
| 343 | SensorThreshold *proxy, |
| 344 | guchar *out_state, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 345 | GAsyncResult *res, |
| 346 | GError **error); |
| 347 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 348 | gboolean sensor_threshold_call_get_state_sync ( |
| 349 | SensorThreshold *proxy, |
| 350 | guchar *out_state, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 351 | GCancellable *cancellable, |
| 352 | GError **error); |
| 353 | |
| 354 | |
| 355 | |
| 356 | /* D-Bus property accessors: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 357 | GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object); |
| 358 | GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object); |
| 359 | void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 360 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 361 | GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object); |
| 362 | GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object); |
| 363 | void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 364 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 365 | GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object); |
| 366 | GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object); |
| 367 | void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 368 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 369 | GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object); |
| 370 | GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object); |
| 371 | void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 372 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 373 | guchar sensor_threshold_get_state (SensorThreshold *object); |
| 374 | void sensor_threshold_set_state (SensorThreshold *object, guchar value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 375 | |
| 376 | |
| 377 | /* ---- */ |
| 378 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 379 | #define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ()) |
| 380 | #define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy)) |
| 381 | #define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| 382 | #define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| 383 | #define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY)) |
| 384 | #define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY)) |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 385 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 386 | typedef struct _SensorThresholdProxy SensorThresholdProxy; |
| 387 | typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass; |
| 388 | typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 389 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 390 | struct _SensorThresholdProxy |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 391 | { |
| 392 | /*< private >*/ |
| 393 | GDBusProxy parent_instance; |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 394 | SensorThresholdProxyPrivate *priv; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 395 | }; |
| 396 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 397 | struct _SensorThresholdProxyClass |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 398 | { |
| 399 | GDBusProxyClass parent_class; |
| 400 | }; |
| 401 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 402 | GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 403 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 404 | void sensor_threshold_proxy_new ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 405 | GDBusConnection *connection, |
| 406 | GDBusProxyFlags flags, |
| 407 | const gchar *name, |
| 408 | const gchar *object_path, |
| 409 | GCancellable *cancellable, |
| 410 | GAsyncReadyCallback callback, |
| 411 | gpointer user_data); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 412 | SensorThreshold *sensor_threshold_proxy_new_finish ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 413 | GAsyncResult *res, |
| 414 | GError **error); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 415 | SensorThreshold *sensor_threshold_proxy_new_sync ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 416 | GDBusConnection *connection, |
| 417 | GDBusProxyFlags flags, |
| 418 | const gchar *name, |
| 419 | const gchar *object_path, |
| 420 | GCancellable *cancellable, |
| 421 | GError **error); |
| 422 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 423 | void sensor_threshold_proxy_new_for_bus ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 424 | GBusType bus_type, |
| 425 | GDBusProxyFlags flags, |
| 426 | const gchar *name, |
| 427 | const gchar *object_path, |
| 428 | GCancellable *cancellable, |
| 429 | GAsyncReadyCallback callback, |
| 430 | gpointer user_data); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 431 | SensorThreshold *sensor_threshold_proxy_new_for_bus_finish ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 432 | GAsyncResult *res, |
| 433 | GError **error); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 434 | SensorThreshold *sensor_threshold_proxy_new_for_bus_sync ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 435 | GBusType bus_type, |
| 436 | GDBusProxyFlags flags, |
| 437 | const gchar *name, |
| 438 | const gchar *object_path, |
| 439 | GCancellable *cancellable, |
| 440 | GError **error); |
| 441 | |
| 442 | |
| 443 | /* ---- */ |
| 444 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 445 | #define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ()) |
| 446 | #define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton)) |
| 447 | #define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| 448 | #define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| 449 | #define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON)) |
| 450 | #define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON)) |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 451 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 452 | typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton; |
| 453 | typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass; |
| 454 | typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 455 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 456 | struct _SensorThresholdSkeleton |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 457 | { |
| 458 | /*< private >*/ |
| 459 | GDBusInterfaceSkeleton parent_instance; |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 460 | SensorThresholdSkeletonPrivate *priv; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 461 | }; |
| 462 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 463 | struct _SensorThresholdSkeletonClass |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 464 | { |
| 465 | GDBusInterfaceSkeletonClass parent_class; |
| 466 | }; |
| 467 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 468 | GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 469 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 470 | SensorThreshold *sensor_threshold_skeleton_new (void); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 471 | |
| 472 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 473 | /* ------------------------------------------------------------------------ */ |
| 474 | /* Declarations for org.openbmc.SensorI2c */ |
| 475 | |
| 476 | #define TYPE_SENSOR_I2C (sensor_i2c_get_type ()) |
| 477 | #define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c)) |
| 478 | #define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C)) |
| 479 | #define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface)) |
| 480 | |
| 481 | struct _SensorI2c; |
| 482 | typedef struct _SensorI2c SensorI2c; |
| 483 | typedef struct _SensorI2cIface SensorI2cIface; |
| 484 | |
| 485 | struct _SensorI2cIface |
| 486 | { |
| 487 | GTypeInterface parent_iface; |
| 488 | |
| 489 | const gchar * (*get_address) (SensorI2c *object); |
| 490 | |
| 491 | const gchar * (*get_dev_path) (SensorI2c *object); |
| 492 | |
| 493 | }; |
| 494 | |
| 495 | GType sensor_i2c_get_type (void) G_GNUC_CONST; |
| 496 | |
| 497 | GDBusInterfaceInfo *sensor_i2c_interface_info (void); |
| 498 | guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin); |
| 499 | |
| 500 | |
| 501 | /* D-Bus property accessors: */ |
| 502 | const gchar *sensor_i2c_get_dev_path (SensorI2c *object); |
| 503 | gchar *sensor_i2c_dup_dev_path (SensorI2c *object); |
| 504 | void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value); |
| 505 | |
| 506 | const gchar *sensor_i2c_get_address (SensorI2c *object); |
| 507 | gchar *sensor_i2c_dup_address (SensorI2c *object); |
| 508 | void sensor_i2c_set_address (SensorI2c *object, const gchar *value); |
| 509 | |
| 510 | |
| 511 | /* ---- */ |
| 512 | |
| 513 | #define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ()) |
| 514 | #define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy)) |
| 515 | #define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| 516 | #define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| 517 | #define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY)) |
| 518 | #define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY)) |
| 519 | |
| 520 | typedef struct _SensorI2cProxy SensorI2cProxy; |
| 521 | typedef struct _SensorI2cProxyClass SensorI2cProxyClass; |
| 522 | typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate; |
| 523 | |
| 524 | struct _SensorI2cProxy |
| 525 | { |
| 526 | /*< private >*/ |
| 527 | GDBusProxy parent_instance; |
| 528 | SensorI2cProxyPrivate *priv; |
| 529 | }; |
| 530 | |
| 531 | struct _SensorI2cProxyClass |
| 532 | { |
| 533 | GDBusProxyClass parent_class; |
| 534 | }; |
| 535 | |
| 536 | GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST; |
| 537 | |
| 538 | void sensor_i2c_proxy_new ( |
| 539 | GDBusConnection *connection, |
| 540 | GDBusProxyFlags flags, |
| 541 | const gchar *name, |
| 542 | const gchar *object_path, |
| 543 | GCancellable *cancellable, |
| 544 | GAsyncReadyCallback callback, |
| 545 | gpointer user_data); |
| 546 | SensorI2c *sensor_i2c_proxy_new_finish ( |
| 547 | GAsyncResult *res, |
| 548 | GError **error); |
| 549 | SensorI2c *sensor_i2c_proxy_new_sync ( |
| 550 | GDBusConnection *connection, |
| 551 | GDBusProxyFlags flags, |
| 552 | const gchar *name, |
| 553 | const gchar *object_path, |
| 554 | GCancellable *cancellable, |
| 555 | GError **error); |
| 556 | |
| 557 | void sensor_i2c_proxy_new_for_bus ( |
| 558 | GBusType bus_type, |
| 559 | GDBusProxyFlags flags, |
| 560 | const gchar *name, |
| 561 | const gchar *object_path, |
| 562 | GCancellable *cancellable, |
| 563 | GAsyncReadyCallback callback, |
| 564 | gpointer user_data); |
| 565 | SensorI2c *sensor_i2c_proxy_new_for_bus_finish ( |
| 566 | GAsyncResult *res, |
| 567 | GError **error); |
| 568 | SensorI2c *sensor_i2c_proxy_new_for_bus_sync ( |
| 569 | GBusType bus_type, |
| 570 | GDBusProxyFlags flags, |
| 571 | const gchar *name, |
| 572 | const gchar *object_path, |
| 573 | GCancellable *cancellable, |
| 574 | GError **error); |
| 575 | |
| 576 | |
| 577 | /* ---- */ |
| 578 | |
| 579 | #define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ()) |
| 580 | #define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton)) |
| 581 | #define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| 582 | #define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| 583 | #define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON)) |
| 584 | #define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON)) |
| 585 | |
| 586 | typedef struct _SensorI2cSkeleton SensorI2cSkeleton; |
| 587 | typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass; |
| 588 | typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate; |
| 589 | |
| 590 | struct _SensorI2cSkeleton |
| 591 | { |
| 592 | /*< private >*/ |
| 593 | GDBusInterfaceSkeleton parent_instance; |
| 594 | SensorI2cSkeletonPrivate *priv; |
| 595 | }; |
| 596 | |
| 597 | struct _SensorI2cSkeletonClass |
| 598 | { |
| 599 | GDBusInterfaceSkeletonClass parent_class; |
| 600 | }; |
| 601 | |
| 602 | GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST; |
| 603 | |
| 604 | SensorI2c *sensor_i2c_skeleton_new (void); |
| 605 | |
| 606 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 607 | /* ---- */ |
| 608 | |
| 609 | #define TYPE_OBJECT (object_get_type ()) |
| 610 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 611 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 612 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 613 | |
| 614 | struct _Object; |
| 615 | typedef struct _Object Object; |
| 616 | typedef struct _ObjectIface ObjectIface; |
| 617 | |
| 618 | struct _ObjectIface |
| 619 | { |
| 620 | GTypeInterface parent_iface; |
| 621 | }; |
| 622 | |
| 623 | GType object_get_type (void) G_GNUC_CONST; |
| 624 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 625 | SensorValue *object_get_sensor_value (Object *object); |
| 626 | SensorThreshold *object_get_sensor_threshold (Object *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 627 | SensorI2c *object_get_sensor_i2c (Object *object); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 628 | SensorValue *object_peek_sensor_value (Object *object); |
| 629 | SensorThreshold *object_peek_sensor_threshold (Object *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 630 | SensorI2c *object_peek_sensor_i2c (Object *object); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 631 | |
| 632 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 633 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 634 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 635 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 636 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 637 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 638 | |
| 639 | typedef struct _ObjectProxy ObjectProxy; |
| 640 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 641 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 642 | |
| 643 | struct _ObjectProxy |
| 644 | { |
| 645 | /*< private >*/ |
| 646 | GDBusObjectProxy parent_instance; |
| 647 | ObjectProxyPrivate *priv; |
| 648 | }; |
| 649 | |
| 650 | struct _ObjectProxyClass |
| 651 | { |
| 652 | GDBusObjectProxyClass parent_class; |
| 653 | }; |
| 654 | |
| 655 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 656 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 657 | |
| 658 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 659 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 660 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 661 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 662 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 663 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 664 | |
| 665 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 666 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 667 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 668 | |
| 669 | struct _ObjectSkeleton |
| 670 | { |
| 671 | /*< private >*/ |
| 672 | GDBusObjectSkeleton parent_instance; |
| 673 | ObjectSkeletonPrivate *priv; |
| 674 | }; |
| 675 | |
| 676 | struct _ObjectSkeletonClass |
| 677 | { |
| 678 | GDBusObjectSkeletonClass parent_class; |
| 679 | }; |
| 680 | |
| 681 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 682 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame^] | 683 | void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_); |
| 684 | void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 685 | void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 686 | |
| 687 | /* ---- */ |
| 688 | |
| 689 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 690 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 691 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 692 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 693 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 694 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 695 | |
| 696 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 697 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 698 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 699 | |
| 700 | struct _ObjectManagerClient |
| 701 | { |
| 702 | /*< private >*/ |
| 703 | GDBusObjectManagerClient parent_instance; |
| 704 | ObjectManagerClientPrivate *priv; |
| 705 | }; |
| 706 | |
| 707 | struct _ObjectManagerClientClass |
| 708 | { |
| 709 | GDBusObjectManagerClientClass parent_class; |
| 710 | }; |
| 711 | |
| 712 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 713 | |
| 714 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 715 | |
| 716 | void object_manager_client_new ( |
| 717 | GDBusConnection *connection, |
| 718 | GDBusObjectManagerClientFlags flags, |
| 719 | const gchar *name, |
| 720 | const gchar *object_path, |
| 721 | GCancellable *cancellable, |
| 722 | GAsyncReadyCallback callback, |
| 723 | gpointer user_data); |
| 724 | GDBusObjectManager *object_manager_client_new_finish ( |
| 725 | GAsyncResult *res, |
| 726 | GError **error); |
| 727 | GDBusObjectManager *object_manager_client_new_sync ( |
| 728 | GDBusConnection *connection, |
| 729 | GDBusObjectManagerClientFlags flags, |
| 730 | const gchar *name, |
| 731 | const gchar *object_path, |
| 732 | GCancellable *cancellable, |
| 733 | GError **error); |
| 734 | |
| 735 | void object_manager_client_new_for_bus ( |
| 736 | GBusType bus_type, |
| 737 | GDBusObjectManagerClientFlags flags, |
| 738 | const gchar *name, |
| 739 | const gchar *object_path, |
| 740 | GCancellable *cancellable, |
| 741 | GAsyncReadyCallback callback, |
| 742 | gpointer user_data); |
| 743 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 744 | GAsyncResult *res, |
| 745 | GError **error); |
| 746 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 747 | GBusType bus_type, |
| 748 | GDBusObjectManagerClientFlags flags, |
| 749 | const gchar *name, |
| 750 | const gchar *object_path, |
| 751 | GCancellable *cancellable, |
| 752 | GError **error); |
| 753 | |
| 754 | |
| 755 | G_END_DECLS |
| 756 | |
| 757 | #endif /* __INTERFACES_SENSOR_H__ */ |