Mercurial > hg > beaglert
annotate 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 |
rev | line source |
---|---|
giuliomoro@338 | 1 /* |
giuliomoro@338 | 2 * Copyright (c) 2012 Peter Brinkmann (peter.brinkmann@gmail.com) |
giuliomoro@338 | 3 * |
giuliomoro@338 | 4 * For information on usage and redistribution, and for a DISCLAIMER OF ALL |
giuliomoro@338 | 5 * WARRANTIES, see the file, "LICENSE.txt," in this distribution. |
giuliomoro@338 | 6 * |
giuliomoro@338 | 7 * See https://github.com/libpd/libpd/wiki for documentation |
giuliomoro@338 | 8 * |
giuliomoro@338 | 9 */ |
giuliomoro@338 | 10 |
giuliomoro@338 | 11 #ifndef __Z_QUEUED_H__ |
giuliomoro@338 | 12 #define __Z_QUEUED_H__ |
giuliomoro@338 | 13 |
giuliomoro@338 | 14 #include "z_libpd.h" |
giuliomoro@338 | 15 |
giuliomoro@338 | 16 #ifdef __cplusplus |
giuliomoro@338 | 17 extern "C" |
giuliomoro@338 | 18 { |
giuliomoro@338 | 19 #endif |
giuliomoro@338 | 20 |
giuliomoro@338 | 21 EXTERN void libpd_set_queued_printhook(const t_libpd_printhook hook); |
giuliomoro@338 | 22 EXTERN void libpd_set_queued_banghook(const t_libpd_banghook hook); |
giuliomoro@338 | 23 EXTERN void libpd_set_queued_floathook(const t_libpd_floathook hook); |
giuliomoro@338 | 24 EXTERN void libpd_set_queued_symbolhook(const t_libpd_symbolhook hook); |
giuliomoro@338 | 25 EXTERN void libpd_set_queued_listhook(const t_libpd_listhook hook); |
giuliomoro@338 | 26 EXTERN void libpd_set_queued_messagehook(const t_libpd_messagehook hook); |
giuliomoro@338 | 27 |
giuliomoro@338 | 28 EXTERN void libpd_set_queued_noteonhook(const t_libpd_noteonhook hook); |
giuliomoro@338 | 29 EXTERN void libpd_set_queued_controlchangehook(const t_libpd_controlchangehook hook); |
giuliomoro@338 | 30 EXTERN void libpd_set_queued_programchangehook(const t_libpd_programchangehook hook); |
giuliomoro@338 | 31 EXTERN void libpd_set_queued_pitchbendhook(const t_libpd_pitchbendhook hook); |
giuliomoro@338 | 32 EXTERN void libpd_set_queued_aftertouchhook(const t_libpd_aftertouchhook hook); |
giuliomoro@338 | 33 EXTERN void libpd_set_queued_polyaftertouchhook(const t_libpd_polyaftertouchhook hook); |
giuliomoro@338 | 34 EXTERN void libpd_set_queued_midibytehook(const t_libpd_midibytehook hook); |
giuliomoro@338 | 35 |
giuliomoro@338 | 36 int libpd_queued_init(); |
giuliomoro@338 | 37 void libpd_queued_release(); |
giuliomoro@338 | 38 void libpd_queued_receive_pd_messages(); |
giuliomoro@338 | 39 void libpd_queued_receive_midi_messages(); |
giuliomoro@338 | 40 |
giuliomoro@338 | 41 #ifdef __cplusplus |
giuliomoro@338 | 42 } |
giuliomoro@338 | 43 #endif |
giuliomoro@338 | 44 |
giuliomoro@338 | 45 #endif |