frameworkd-glib-dbus: don't call deprecated g_type_init for glib-2.35* and newer
[libframeworkd-glib.git] / src / opimd / frameworkd-glib-opimd-tasks.c
blobce58cff7a7ada2b529ec9c1e870b7855efb249c2
1 /*
2 * Copyright (C) 2010
3 * Authors (alphabetical) :
4 * mrmoku (Klaus Kurzmann, mok@fluxnetz.de)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Public License as published by
8 * the Free Software Foundation; version 2 of the license.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser Public License for more details.
17 #include <dbus/dbus-glib.h>
18 #include <dbus/dbus-glib-bindings.h>
19 #include "frameworkd-glib-opimd-tasks.h"
20 #include "frameworkd-glib-opimd-dbus.h"
21 #include "dbus/tasks.h"
23 DBusGProxy *opimdTasksBus = NULL;
26 void
27 opimd_tasks_unfinished_tasks_handler(DBusGProxy* proxy, int amount, gpointer userdata)
29 (void)proxy;
30 void (*callback) (const int) = NULL;
32 callback = userdata;
34 if (callback != NULL)
35 (*callback)(amount);