-
Notifications
You must be signed in to change notification settings - Fork 1
/
gio.go.h
76 lines (63 loc) · 1.17 KB
/
gio.go.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
//static int callGApplicationRun(GApplication *app, int argc, char **argv){
// int i, res;
// printf ("-- Tableau de %d éléments : --\n",argc);
// for (i=0;i<argc;i++)
// printf("%d - @ %x : %s\n",i, &argv[i], argv[i]);
// printf ("-- Call Gio Application RUN --\n",argc);
// res = g_application_run(app, argc, argv);
// return res;
//}
static GAction *
toGAction(void *p)
{
return (G_ACTION(p));
}
static GApplication *
toGApplication(void *p)
{
return (G_APPLICATION(p));
}
static GCancellable *
toGCancellable(void *p)
{
return (G_CANCELLABLE(p));
}
static GDBusConnection *
toGDBusConnection(void *p)
{
return (G_DBUS_CONNECTION(p));
}
static GFile *
toGFile(void *p)
{
return (G_FILE(p));
}
static GFile **
alloc_files(int n) {
return ((GFile **)g_new0(GFile *, n));
}
static void
set_file(GFile **files, int n, GFile *f)
{
files[n] = f;
}
static GFile *
get_file(void *files ,int n)
{
GFile *f = ((GFile **)files)[n];
return f;
}
static GNotification *
toGNotification(void *p)
{
return (G_NOTIFICATION(p));
}
static GTypeModule *
toGTypeModule(void *p)
{
return (G_TYPE_MODULE(p));
}