~chasedouglas/geis/fix-deltas

« back to all changes in this revision

Viewing changes to reference-impl/geis_instance.c

  • Committer: Stephen M. Webb
  • Date: 2010-07-26 01:40:31 UTC
  • Revision ID: stephen.webb@canonical.com-20100726014031-e9v4wglbzlb4boor
Added basic dbus functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include <stdlib.h>
8
8
 
9
9
 
10
 
GeisInstance *
 
10
GeisInstance
11
11
geis_instance_get(GeisDbus* dbus)
12
12
{
13
 
        GeisInstance *instance = calloc(1, sizeof(GeisInstance));
 
13
        GeisInstance instance = calloc(1, sizeof(GeisInstance));
14
14
        if (instance)
15
15
        {
16
16
                instance->dbus = geis_dbus_get();
19
19
}
20
20
 
21
21
void
22
 
geis_instance_free(GeisInstance* instance)
 
22
geis_instance_free(GeisInstance instance)
23
23
{
24
24
        geis_dbus_free(instance->dbus);
25
25
}