/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/GlobalNotify.c

  • Committer: Gustav Hartvigsson
  • Date: 2016-09-21 14:14:35 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160921141435-myu4t13n2c24vkys
woops!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
/*
 
2
 
3
3
Copyright (c) 2013-2014 Gustav Hartvigsson
4
4
 
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
22
22
*/
23
23
 
24
24
 
25
 
/*#include "GlobalNotify.h"*/
26
 
 
27
 
/*#include "DynamicArray.h"*/
28
 
 
29
 
/*#include "LinkedList.h"*/
30
 
 
31
 
/*struct SGlobalNotify {*/
32
 
/*  SDynamicArray * tabel;*/
33
 
/*  */
34
 
/*  size_t last;*/
35
 
/*};*/
36
 
 
37
 
/*static SGlobalNotify * _global_notify_object;*/
38
 
 
39
 
/*void*/
40
 
/*_internal_initialize () {*/
41
 
/*  _global_notify_object = s_malloc (sizeof (SGlobalNotify));*/
42
 
/*  */
43
 
/*}*/
44
 
 
45
 
/*void*/
46
 
/*s_global_notify (schar * name, spointer user_data) {*/
47
 
/*  */
48
 
/*}*/
49
 
 
50
 
/*sint*/
51
 
/*s_global_notify_add (schar * name) {*/
52
 
/*  */
53
 
/*  return 0;*/
54
 
/*}*/
55
 
 
56
 
/*sint*/
57
 
/*s_global_notify_get_handle (schar * name) {*/
58
 
/*  return 0;*/
59
 
/*}*/
60
 
 
61
 
 
62
 
/*sint*/
63
 
/*s_global_notify_subscribe (schar * name, Callback callback) {*/
64
 
/*  return 0;*/
65
 
/*}*/
66
 
 
67
 
/*sboolean*/
68
 
/*s_global_notify_unsubscribe (schar * name, sint subscription_id) {*/
69
 
/*  return TRUE;*/
70
 
/*}*/
71
 
 
72
 
/*void*/
73
 
/*s_global_notify_teardown (void) {*/
74
 
/*  */
75
 
/*}*/
 
25
#include "GlobalNotify.h"
 
26
 
 
27
#include "DynamicArray.h"
 
28
 
 
29
#include "LinkedList.h"
 
30
 
 
31
struct SGlobalNotify {
 
32
  SDynamicArray * tabel;
 
33
  
 
34
  size_t last;
 
35
};
 
36
 
 
37
static SGlobalNotify * _global_notify_object;
 
38
 
 
39
void
 
40
_internal_initialize () {
 
41
  _global_notify_object = s_malloc (sizeof (SGlobalNotify));
 
42
  
 
43
}
 
44
 
 
45
void
 
46
s_global_notify (schar * name, spointer user_data) {
 
47
  
 
48
}
 
49
 
 
50
sint
 
51
s_global_notify_add (schar * name) {
 
52
  
 
53
  return 0;
 
54
}
 
55
 
 
56
sint
 
57
s_global_notify_get_handle (schar * name) {
 
58
  return 0;
 
59
}
 
60
 
 
61
 
 
62
sint
 
63
s_global_notify_subscribe (schar * name, Callback callback) {
 
64
  return 0;
 
65
}
 
66
 
 
67
sboolean
 
68
s_global_notify_unsubscribe (schar * name, sint subscription_id) {
 
69
  return TRUE;
 
70
}
 
71
 
 
72
void
 
73
s_global_notify_teardown (void) {
 
74
  
 
75
}
76
76