~jamalta/unity/683241-recyclebin-icon

« back to all changes in this revision

Viewing changes to libunity/ubus-server.h

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2010-11-30 10:03:50 UTC
  • mfrom: (636.5.7 unity)
  • Revision ID: mikkel.kamstrup@gmail.com-20101130100350-w3vh9x2x9uboek4n
Merge Mikkel's branch lp:~kamstrup/unity/ubus-cleanups:

 * Fixes some memleaks in UBus
 * Optimizes memory usage in UBus
 * Optimizes message dispatching and interest registration in UBus
 * Code style cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
  UBusServerPrivate *priv;
58
58
};
59
59
 
60
 
typedef void (*UBusCallback) (GVariant *data, gpointer *user_data);
 
60
typedef void (*UBusCallback)                 (GVariant     *data,
 
61
                                              gpointer      user_data);
61
62
 
62
 
GType ubus_server_get_type (void) G_GNUC_CONST;
63
 
UBusServer *ubus_server_get_default ();
64
 
void   ubus_server_prime_context (UBusServer* server, GMainContext *context);
65
 
gulong ubus_server_register_interest (UBusServer* server, const gchar *message,
66
 
                                      UBusCallback callback, gpointer user_data);
67
 
void   ubus_server_send_message (UBusServer* server, const gchar *message,
68
 
                                 GVariant *data);
69
 
void   ubus_server_unregister_interest (UBusServer* server, gulong handle);
70
 
void   ubus_server_force_message_pump (UBusServer* server);
 
63
GType        ubus_server_get_type            (void) G_GNUC_CONST;
 
64
UBusServer*  ubus_server_get_default         ();
 
65
void         ubus_server_prime_context       (UBusServer   *server,
 
66
                                              GMainContext *context);
 
67
guint        ubus_server_register_interest   (UBusServer   *server,
 
68
                                              const gchar  *message,
 
69
                                              UBusCallback  callback,
 
70
                                              gpointer      user_data);
 
71
void         ubus_server_send_message        (UBusServer   *server,
 
72
                                              const gchar  *message,
 
73
                                              GVariant     *data);
 
74
void         ubus_server_unregister_interest (UBusServer   *server,
 
75
                                              guint handle);
 
76
void         ubus_server_force_message_pump  (UBusServer   *server);
71
77
 
72
78
G_END_DECLS
73
79