lo.h   lo.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo.h,v 1.10 2004/07/12 14:54:20 swh Exp $ * $Id: lo.h,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_H #ifndef LO_H
#define LO_H #define LO_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/** /**
skipping to change at line 113 skipping to change at line 113
* \param port If NULL is passed then an unused UDP port will be chosen by the * \param port If NULL is passed then an unused UDP port will be chosen by the
* system, its number may be retreived with lo_server_thread_get_port() * system, its number may be retreived with lo_server_thread_get_port()
* so it can be passed to clients. Otherwise a decimal port number, service * so it can be passed to clients. Otherwise a decimal port number, service
* name or UNIX domain socket path may be passed. * name or UNIX domain socket path may be passed.
* \param err_h A function that will be called in the event of an error bei ng * \param err_h A function that will be called in the event of an error bei ng
* raised. The function prototype is defined in lo_types.h * raised. The function prototype is defined in lo_types.h
*/ */
lo_server_thread lo_server_thread_new(const char *port, lo_err_handler err_ h); lo_server_thread lo_server_thread_new(const char *port, lo_err_handler err_ h);
/** /**
* \brief Free memory taken by a server thread
*
* Frees the memory, and, if currently running will stop the associated thr
ead.
*/
void lo_server_thread_free(lo_server_thread st);
/**
* \brief Add an OSC method to the specifed server thread. * \brief Add an OSC method to the specifed server thread.
* *
* \param st The server thread the method is to be added to. * \param st The server thread the method is to be added to.
* \param path The OSC path to register the method to. If NULL is passed th e * \param path The OSC path to register the method to. If NULL is passed th e
* method will match all paths. * method will match all paths.
* \param typespec The typespec the method accepts. Incoming messages with * \param typespec The typespec the method accepts. Incoming messages with
* similar typespecs (e.g. ones with numerical types in the same position) will * similar typespecs (e.g. ones with numerical types in the same position) will
* be coerced to the typespec given here. * be coerced to the typespec given here.
* \param h The method handler callback function that will be called it a * \param h The method handler callback function that will be called it a
* matching message is received * matching message is received
skipping to change at line 166 skipping to change at line 173
/** /**
* \brief Create a new OSC blob type. * \brief Create a new OSC blob type.
* *
* \param size The ammount of space to allocate in the blob structure. * \param size The ammount of space to allocate in the blob structure.
* \param data The data that will be used to initialise the blob, should be * \param data The data that will be used to initialise the blob, should be
* size bytes long. * size bytes long.
*/ */
lo_blob lo_blob_new(int32_t size, void *data); lo_blob lo_blob_new(int32_t size, void *data);
/** /**
* \brief Free the memory taken by a blob
*/
void lo_blob_free(lo_blob b);
/**
* \brief Return the ammount of valid data in a lo blob object. * \brief Return the ammount of valid data in a lo blob object.
* *
* If you want to know the storage size, use lo_arg_size(). * If you want to know the storage size, use lo_arg_size().
*/ */
uint32_t lo_blob_datasize(lo_blob b); uint32_t lo_blob_datasize(lo_blob b);
/** /**
* \brief Return a pointer to the start of the blob data to allow contents to * \brief Return a pointer to the start of the blob data to allow contents to
* be changed. * be changed.
*/ */
 End of changes. 3 change blocks. 
1 lines changed or deleted 14 lines changed or added


 lo_backcompat.h   lo_backcompat.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo_backcompat.h,v 1.4 2004/03/23 23:55:38 swh Exp $ * $Id: lo_backcompat.h,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_BACKCOMPAT_H #ifndef LO_BACKCOMPAT_H
#define LO_BACKCOMPAT_H #define LO_BACKCOMPAT_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* for back compatibility, deprecated, don't use */ /* for back compatibility, deprecated, don't use */
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 lo_endian.h   lo_endian.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo_endian.h,v 1.3 2004/07/12 14:54:20 swh Exp $ * $Id: lo_endian.h.in,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_ENDIAN_H #ifndef LO_ENDIAN_H
#define LO_ENDIAN_H #define LO_ENDIAN_H
#include <netinet/in.h> #include <netinet/in.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 lo_errors.h   lo_errors.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo_errors.h,v 1.4 2004/03/23 23:32:55 swh Exp $ * $Id: lo_errors.h,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_ERRORS_H #ifndef LO_ERRORS_H
#define LO_ERRORS_H #define LO_ERRORS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#define LO_ENOPATH 9901 #define LO_ENOPATH 9901
#define LO_ENOTYPE 9902 #define LO_ENOTYPE 9902
#define LO_UNKNOWNPROTO 9903 #define LO_UNKNOWNPROTO 9903
#define LO_NOPORT 9904 #define LO_NOPORT 9904
#define LO_TOOBIG 9905
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added


 lo_lowlevel.h   lo_lowlevel.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo_lowlevel.h,v 1.12 2004/07/12 14:54:20 swh Exp $ * $Id: lo_lowlevel.h,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_LOWLEVEL_H #ifndef LO_LOWLEVEL_H
#define LO_LOWLEVEL_H #define LO_LOWLEVEL_H
#include "lo/lo_osc_types.h" #include "lo/lo_osc_types.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 lo_macros.h   lo_macros.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo_macros.h,v 1.2 2004/07/12 14:54:20 swh Exp $ * $Id: lo_macros.h,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_MACROS_H #ifndef LO_MACROS_H
#define LO_MACROS_H #define LO_MACROS_H
/* macros that have to be defined after function signatures */ /* macros that have to be defined after function signatures */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* Maximum length of UDP messages in bytes */ /* Maximum length of UDP messages in bytes */
#define LO_MAX_MSG_SIZE 32768 #define LO_MAX_MSG_SIZE 32768
/* Different possible protocol bitmasks */ /* \brief A set of macros to represent different communications transports
*/
#define LO_UDP 0x1 #define LO_UDP 0x1
#define LO_UNIX 0x2 #define LO_UNIX 0x2
#define LO_TCP 0x4
/* an internal value, ignored in transmission but check against LO_MARKER i n the /* an internal value, ignored in transmission but check against LO_MARKER i n the
* argument list. Used to do primitive bounds checking */ * argument list. Used to do primitive bounds checking */
#define LO_MARKER_A 0xdeadbeef #define LO_MARKER_A 0xdeadbeef
#define LO_MARKER_B 0xf00baa23 #define LO_MARKER_B 0xf00baa23
#define lo_send(targ, path, types...) \ #define lo_send(targ, path, types...) \
lo_send_internal(targ, __FILE__, __LINE__, path, types, \ lo_send_internal(targ, __FILE__, __LINE__, path, types, \
LO_MARKER_A, LO_MARKER_B) LO_MARKER_A, LO_MARKER_B)
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 lines changed or added


 lo_osc_types.h   lo_osc_types.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo_osc_types.h,v 1.2 2004/03/24 23:33:50 swh Exp $ * $Id: lo_osc_types.h,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_OSC_TYPES_H #ifndef LO_OSC_TYPES_H
#define LO_OSC_TYPES_H #define LO_OSC_TYPES_H
/** /**
* \addtogroup liblo * \addtogroup liblo
* @{ * @{
*/ */
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 lo_throw.h   lo_throw.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo_throw.h,v 1.3 2004/03/23 23:32:55 swh Exp $ * $Id: lo_throw.h,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_THROW_H #ifndef LO_THROW_H
#define LO_THROW_H #define LO_THROW_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
void lo_throw(lo_server s, int errnum, const char *message, const char *pat h); void lo_throw(lo_server s, int errnum, const char *message, const char *pat h);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 lo_types.h   lo_types.h 
skipping to change at line 14 skipping to change at line 14
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* $Id: lo_types.h,v 1.7 2004/07/12 14:54:20 swh Exp $ * $Id: lo_types.h,v 1.1.1.1 2004/08/07 22:21:02 theno23 Exp $
*/ */
#ifndef LO_TYPES_H #ifndef LO_TYPES_H
#define LO_TYPES_H #define LO_TYPES_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include <netdb.h> #include <netdb.h>
#include <pthread.h> #include <pthread.h>
#include "lo/lo_osc_types.h" #include "lo/lo_osc_types.h"
/** /**
* \brief A set of macros to represent different communications transports
*/
#define LO_UDP 0x1
#define LO_UNIX 0x2
/**
* \brief A reference to an OSC service. * \brief A reference to an OSC service.
* *
* Created by calls to lo_address_new() or lo_address_new_from_url(). * Created by calls to lo_address_new() or lo_address_new_from_url().
*/ */
typedef void *lo_address; typedef void *lo_address;
/** /**
* \brief A object to store an opaque binary data object. * \brief A object to store an opaque binary data object.
* *
* Can be passed over OSC using the 'b' type. Created by calls to lo_blob_n ew(). * Can be passed over OSC using the 'b' type. Created by calls to lo_blob_n ew().
 End of changes. 2 change blocks. 
7 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/