aboutsummaryrefslogtreecommitdiff
path: root/packages/patches/expose_sys_register_loader-0.41.0-test03.patch
blob: 4bc134aba5acde400581b879825a89e0db66a382 (plain)
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
Index: s_loader.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_loader.c,v
retrieving revision 1.13
diff -u -w -r1.13 s_loader.c
--- s_loader.c	9 Oct 2006 04:36:12 -0000	1.13
+++ s_loader.c	26 Nov 2006 04:46:57 -0000
@@ -198,9 +198,6 @@
     return (1);
 }
 
-/* callback type definition */
-typedef int (*loader_t)(t_canvas *canvas, char *classname);
-
 /* linked list of loaders */
 typedef struct loader_queue {
     loader_t loader;
Index: s_stuff.h
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_stuff.h,v
retrieving revision 1.10
diff -u -w -r1.10 s_stuff.h
--- s_stuff.h	15 Aug 2006 04:54:15 -0000	1.10
+++ s_stuff.h	26 Nov 2006 04:46:57 -0000
@@ -52,6 +52,8 @@
 
 /* s_loader.c */
 int sys_load_lib(t_canvas *canvas, char *filename);
+typedef int (*loader_t)(t_canvas *canvas, char *classname);
+EXTERN void sys_register_loader(loader_t loader);
 
 /* s_audio.c */