~fginther/unity/100-scopes-search-tests

« back to all changes in this revision

Viewing changes to tests/test_service_gdbus_wrapper.h

  • Committer: Nick Dedekind
  • Date: 2013-03-12 13:31:41 UTC
  • mfrom: (3008.2.200 trunk)
  • Revision ID: nicholas.dedekind@gmail.com-20130312133141-qrq3x3ighapfd36f
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _SERVICE_GDBUS_WRAPPER_H_
2
2
#define _SERVICE_GDBUS_WRAPPER_H_
3
3
 
4
 
#include <glib-object.h>
5
 
G_BEGIN_DECLS
6
 
 
7
 
#define SERVICE_TYPE_GDBUS_WRAPPER (service_gdbus_wrapper_get_type ())
8
 
 
9
 
#define SERVICE_GDBUS_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
10
 
  SERVICE_TYPE_GDBUS_WRAPPER, ServiceGDBusWrapper))
11
 
 
12
 
#define SERVICE_GDBUS_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
13
 
  SERVICE_TYPE_GDBUS_WRAPPER, ServiceGDBusWrapperClass))
14
 
 
15
 
#define SERVICE_IS_GDBUS_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
16
 
  SERVICE_TYPE_GDBUS_WRAPPER))
17
 
 
18
 
#define SERVICE_IS_GDBUS_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
19
 
  SERVICE_TYPE_GDBUS_WRAPPER))
20
 
 
21
 
#define ServiceGDBusWrapper_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
22
 
  SERVICE_TYPE_GDBUS_WRAPPER, ServiceGDBusWrapperClass))
23
 
 
24
 
typedef struct _ServiceGDBusWrapper        ServiceGDBusWrapper;
25
 
typedef struct _ServiceGDBusWrapperClass   ServiceGDBusWrapperClass;
26
 
typedef struct _ServiceGDBusWrapperPrivate ServiceGDBusWrapperPrivate;
27
 
 
28
 
struct _ServiceGDBusWrapper
29
 
{
30
 
  GObject parent;
31
 
 
32
 
  ServiceGDBusWrapperPrivate *priv;
33
 
};
34
 
 
35
 
struct _ServiceGDBusWrapperClass
36
 
{
37
 
  GObjectClass parent_class;
38
 
};
39
 
 
40
 
GType service_gdbus_wrapper_get_type(void) G_GNUC_CONST;
41
 
 
42
 
ServiceGDBusWrapper* service_gdbus_wrapper_new(void);
43
 
 
44
 
G_END_DECLS
 
4
#include <UnityCore/GLibDBusServer.h>
 
5
 
 
6
namespace unity
 
7
{
 
8
namespace service
 
9
{
 
10
 
 
11
class GDBus
 
12
{
 
13
public:
 
14
  GDBus();
 
15
 
 
16
private:
 
17
  glib::DBusServer server_;
 
18
};
 
19
 
 
20
}
 
21
}
45
22
 
46
23
#endif /* _SERVICE_GDBUS_WRAPPER_H_ */