diff options
author | jdl <x75@users.sourceforge.net> | 2004-03-10 00:01:56 +0000 |
---|---|---|
committer | jdl <x75@users.sourceforge.net> | 2004-03-10 00:01:56 +0000 |
commit | d8847bccfcc9ac116d81cd18ce485f5595e7f6bb (patch) | |
tree | 96cb0fd40422be9c1134f3b798e0123dbe2b24c2 /src/OSC.c | |
parent | e6fab9c5c8c0a32bbb1ef95e9bff5abc5a773bf5 (diff) |
changed to single external style ...
svn path=/trunk/externals/OSCx/; revision=1399
Diffstat (limited to 'src/OSC.c')
-rw-r--r-- | src/OSC.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/OSC.c b/src/OSC.c new file mode 100644 index 0000000..0a8e361 --- /dev/null +++ b/src/OSC.c @@ -0,0 +1,66 @@ +/*
+
+ pd
+ -------------
+ -- tweaks for Win32 www.zeggz.com/raf 13-April-2002
+
+*/
+
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <m_pd.h>
+#include "OSC-common.h"
+
+#define VERSION "0.2"
+
+#ifndef OSC_API
+#define OSC_API
+#endif
+
+typedef struct _OSC
+{
+ t_object x_obj;
+} t_OSC;
+
+
+OSC_API void OSC_setup(void);
+OSC_API void OSC_version(t_OSC*);
+/*
+OSC_API void sendOSC_setup(void);
+OSC_API void dumpOSC_setup(void);
+OSC_API void OSCroute_setup(void);
+*/
+
+static t_class* OSC_class;
+
+
+static void* OSC_new(t_symbol* s) {
+ t_OSC *x = (t_OSC *)pd_new(OSC_class);
+ return (x);
+}
+
+
+OSC_API void OSC_version (t_OSC *x) {
+
+ // EnterCallback();
+ post("OSC4PD Version " VERSION
+ "\n ¯\\ original code by matt wright. pd-fication jdl@xdv.org\n"
+ " · Win32-port raf@interaccess.com\n \\_ Compiled " __TIME__ " " __DATE__);
+ // ExitCallback();
+}
+
+OSC_API void OSC_setup(void) {
+ OSC_class = class_new(gensym("OSC"), (t_newmethod)OSC_new, 0,
+ sizeof(t_OSC), 0,0);
+ class_addmethod(OSC_class, (t_method)OSC_version, gensym("version"), A_NULL, 0, 0);
+
+ sendOSC_setup();
+ dumpOSC_setup();
+ OSCroute_setup();
+
+ post("O : Open Sound Control 4 PD, http://www.cnmat.berkeley.edu/OSC");
+ post(" S : original code by matt wright, pd hakcs cxc, Win32-port raf@interaccess.com");
+ post(" C: ver: "VERSION ", compiled: "__DATE__);
+}
|