forked from tliron/pygobject-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.c
24 lines (18 loc) · 715 Bytes
/
test.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "logging_logger.h"
int main(int argc, char *argv[])
{
g_type_init();
LoggingLogger *logger = g_object_new(LOGGING_TYPE_LOGGER, NULL);
GValue name = G_VALUE_INIT;
g_value_init(&name, G_TYPE_STRING);
g_value_set_static_string(&name, "chipy");
g_object_set_property(G_OBJECT(logger), "name", &name);
g_value_unset(&name);
logging_logger_log(logger, "ChiPy thanks crowdSPRING for hosting!");
logging_logger_log(logger, "And can't wait for 'beer time'.");
logging_logger_log(logger, "The Ruby folk are probably drinking vitamin water right now.");
logging_logger_increment(logger);
logging_logger_log(logger, "ChiPy does not have a drinking problem.");
g_object_unref(logger);
return 0;
}