-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathodot.i
108 lines (100 loc) · 2.48 KB
/
odot.i
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%module odot
%{
#include "osc_match.h"
#include "osc_bundle_s.h"
#include "osc_bundle_u.h"
#include "osc_bundle_iterator_s.h"
#include "osc_bundle_iterator_u.h"
#include "osc_error.h"
#include "osc_mem.h"
#include "osc_message_s.h"
#include "osc_message_u.h"
#include "osc_message_iterator_s.h"
#include "osc_message_iterator_u.h"
#include "osc_atom_s.h"
#include "osc_atom_u.h"
#include "osc_array.h"
#include "osc_atom_array_s.h"
#include "osc_atom_array_u.h"
#include "osc_expr.h"
#include "osc_vtable.h"
#include "osc_dispatch.h"
#include "osc_hashtab.h"
#include "osc_linkedlist.h"
#include "osc_util.h"
#include "osc_rset.h"
#include "osc_query.h"
#include "osc_strfmt.h"
#include "osc_expr_rec.h"
#include "osc_typetag.h"
#include "contrib/strptime.h"
#include "osc_timetag.h"
#include "osc_serial.h"
#include "osc.h"
%}
%include "osc_match.h"
%include "osc_bundle_s.h"
%include "osc_bundle_u.h"
%include "osc_bundle_iterator_s.h"
%include "osc_bundle_iterator_u.h"
%include "osc_error.h"
%include "osc_mem.h"
%include "osc_message_s.h"
%include "osc_message_u.h"
%include "osc_message_iterator_s.h"
%include "osc_message_iterator_u.h"
%include "osc_atom_s.h"
%include "osc_atom_u.h"
%include "osc_array.h"
%include "osc_atom_array_s.h"
%include "osc_atom_array_u.h"
%include "osc_expr.h"
%include "osc_vtable.h"
%include "osc_dispatch.h"
%include "osc_hashtab.h"
%include "osc_linkedlist.h"
%include "osc_util.h"
%include "osc_rset.h"
%include "osc_query.h"
%include "osc_strfmt.h"
%include "osc_expr_rec.h"
%include "osc_typetag.h"
%include "contrib/strptime.h"
%include "osc_timetag.h"
%include "osc_serial.h"
%include "osc.h"
%inline %{
t_osc_ar *osc_bundle_s_lookupAddress_r(int len, char *buf, const char *address, int fullmatch)
{
t_osc_ar *ar = NULL;
osc_bundle_s_lookupAddress(len, buf, address, &ar, fullmatch);
return ar;
}
t_osc_ar *osc_bundle_u_lookupAddress_r(t_osc_bndl_u *bndl, const char *address, int fullmatch)
{
t_osc_ar *ar = NULL;
osc_bundle_u_lookupAddress(bndl, address, &ar, fullmatch);
return ar;
}
t_osc_bndl_u *osc_bundle_s_deserialize_r(long len, char *ptr)
{
t_osc_bndl_u *bndl = NULL;
osc_bundle_s_deserialize(len, ptr, &bndl);
return bndl;
}
t_osc_msg_s *void_to_osc_message_s(void *p)
{
return (t_osc_msg_s *)p;
}
t_osc_msg_u *void_to_osc_message_u(void *p)
{
return (t_osc_msg_u *)p;
}
t_osc_atom_u *osc_message_u_getArg_r(t_osc_msg_u *m, int n)
{
t_osc_atom_u *a = NULL;
osc_message_u_getArg(m, n, &a);
return a;
}
%}
//extern t_osc_msg_s *void_to_osc_message_s(void *p);