~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to src/dbus-server-object.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20081226001006-wd8cuqn8d81smkdp
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _xvc_DBUS_SERVER_OBJECT__
 
2
#define _xvc_DBUS_SERVER_OBJECT__
 
3
 
 
4
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
5
#ifdef HAVE_CONFIG_H
 
6
#include <config.h>
 
7
#endif
 
8
#include <dbus/dbus-glib-bindings.h>
 
9
#endif     // DOXYGEN_SHOULD_SKIP_THIS
 
10
 
 
11
#ifdef __cplusplus
 
12
extern "C"
 
13
{
 
14
#endif     // __cplusplus
 
15
 
 
16
/* Standard GObject class structures, etc */
 
17
    typedef struct
 
18
    {
 
19
        GObjectClass parent_class;
 
20
        DBusGConnection *connection;
 
21
    } XvcServerObjectClass;
 
22
 
 
23
    typedef struct
 
24
    {
 
25
        GObject parent_instance;
 
26
    } XvcServerObject;
 
27
 
 
28
/*
 
29
 * function declarations
 
30
 */
 
31
    XvcServerObject *xvc_server_object_new ();
 
32
    GType xvc_server_object_get_type ();
 
33
 
 
34
    gboolean xvc_dbus_stop (XvcServerObject * server, GError ** error);
 
35
    gboolean xvc_dbus_start (XvcServerObject * server, GError ** error);
 
36
    gboolean xvc_dbus_pause (XvcServerObject * server, GError ** error);
 
37
 
 
38
/*
 
39
 * macros
 
40
 */
 
41
#define XVC_SERVER_OBJECT_GET_CLASS(object)  (G_TYPE_INSTANCE_GET_CLASS ((object), xvc_server_object_get_type(), XvcServerObjectClass))
 
42
#define XVC_SERVER_OBJECT(object)            (G_TYPE_CHECK_INSTANCE_CAST ((object), xvc_server_object_get_type(), XvcServerObject))
 
43
 
 
44
#ifdef __cplusplus
 
45
}
 
46
#endif     // __cplusplus
 
47
#endif     // _xvc_DBUS_SERVER_OBJECT__