Mercurial > hg > beaglert
diff examples/basic_libpd/z_queued.h @ 338:1802f99cd77f prerelease
Initial support for thread-safe libpd (stil missing updated libpd binary), untested
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 05 Jun 2016 21:46:44 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/basic_libpd/z_queued.h Sun Jun 05 21:46:44 2016 +0100 @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2012 Peter Brinkmann (peter.brinkmann@gmail.com) + * + * For information on usage and redistribution, and for a DISCLAIMER OF ALL + * WARRANTIES, see the file, "LICENSE.txt," in this distribution. + * + * See https://github.com/libpd/libpd/wiki for documentation + * + */ + +#ifndef __Z_QUEUED_H__ +#define __Z_QUEUED_H__ + +#include "z_libpd.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +EXTERN void libpd_set_queued_printhook(const t_libpd_printhook hook); +EXTERN void libpd_set_queued_banghook(const t_libpd_banghook hook); +EXTERN void libpd_set_queued_floathook(const t_libpd_floathook hook); +EXTERN void libpd_set_queued_symbolhook(const t_libpd_symbolhook hook); +EXTERN void libpd_set_queued_listhook(const t_libpd_listhook hook); +EXTERN void libpd_set_queued_messagehook(const t_libpd_messagehook hook); + +EXTERN void libpd_set_queued_noteonhook(const t_libpd_noteonhook hook); +EXTERN void libpd_set_queued_controlchangehook(const t_libpd_controlchangehook hook); +EXTERN void libpd_set_queued_programchangehook(const t_libpd_programchangehook hook); +EXTERN void libpd_set_queued_pitchbendhook(const t_libpd_pitchbendhook hook); +EXTERN void libpd_set_queued_aftertouchhook(const t_libpd_aftertouchhook hook); +EXTERN void libpd_set_queued_polyaftertouchhook(const t_libpd_polyaftertouchhook hook); +EXTERN void libpd_set_queued_midibytehook(const t_libpd_midibytehook hook); + +int libpd_queued_init(); +void libpd_queued_release(); +void libpd_queued_receive_pd_messages(); +void libpd_queued_receive_midi_messages(); + +#ifdef __cplusplus +} +#endif + +#endif