NON WORKING CODE
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <lo/lo.h> /* OSC library */
|
||||
|
||||
@@ -25,18 +26,54 @@
|
||||
int verbosity; /* global variable */
|
||||
|
||||
/* ------------------------------------------------------------------- */
|
||||
static int bloub(void)
|
||||
/* ------------------------------------------------------------------- */
|
||||
int init_osc_receiver(char *port, int notused)
|
||||
{
|
||||
BurpMsg message;
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, ">>> %s ( '%s' %d )\n", __func__, port, notused);
|
||||
#endif
|
||||
|
||||
message.magic = BURP_MAGIC;
|
||||
return -1;
|
||||
}
|
||||
/* ------------------------------------------------------------------- */
|
||||
int init_osc_sender(char *r_host, char *r_port, int notused)
|
||||
{
|
||||
int foo;
|
||||
|
||||
display_burp_msg(&message, NULL);
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, ">>> %s ( '%s' '%s' %d )\n", __func__,
|
||||
r_host, r_port, notused);
|
||||
#endif
|
||||
|
||||
foo = blast_init(r_host, r_port, 0, 0);
|
||||
if (foo) {
|
||||
fprintf(stderr, "blast_init return %d\n", foo);
|
||||
return -2;
|
||||
}
|
||||
|
||||
if (verbosity) blast_NOP(getpid());
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* ------------------------------------------------------------------- */
|
||||
/*
|
||||
* this is a tool function for debugging, do not use in real life
|
||||
*/
|
||||
static int tentative(void)
|
||||
{
|
||||
int foo;
|
||||
|
||||
blast_rewind();
|
||||
|
||||
blast_addpoint(200, 200, 0xff0000);
|
||||
blast_addpoint(300, 300, 0xff0000);
|
||||
|
||||
blast_flush(0);
|
||||
|
||||
return 42;
|
||||
}
|
||||
/* ------------------------------------------------------------------- */
|
||||
static int help(int krkrkr)
|
||||
{
|
||||
puts("HELP ME !");
|
||||
@@ -49,7 +86,6 @@ puts("\t-v\t\tincrease verbosity");
|
||||
return 1;
|
||||
}
|
||||
/* ------------------------------------------------------------------- */
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *local_port = LOCAL_PORT;
|
||||
@@ -58,7 +94,7 @@ char *remote_port = REMOTE_PORT;
|
||||
|
||||
int lasernumber, scenenumber;
|
||||
|
||||
int opt;
|
||||
int opt, foo;
|
||||
|
||||
fprintf(stderr, "%s compiled %s at %s\n",argv[0], __DATE__, __TIME__);
|
||||
|
||||
@@ -87,7 +123,10 @@ if (verbosity) {
|
||||
fprintf(stderr, "scn/laser : %d %d\n", scenenumber, lasernumber);
|
||||
}
|
||||
|
||||
bloub();
|
||||
foo = init_osc_sender(remote_host, remote_port, 0);
|
||||
fprintf(stderr, "init osc sender -> %d\n", foo);
|
||||
|
||||
tentative();
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user