moved #ifdef _cplusplus

This commit is contained in:
Abramo Bagnara 2001-02-01 07:52:30 +00:00
parent e3bdf9a022
commit f0be454aa1
4 changed files with 12 additions and 12 deletions

View file

@ -22,12 +22,12 @@ typedef struct sndrv_hwdep_info snd_hwdep_info_t;
#define SND_HWDEP_OPEN_DUPLEX (O_RDWR) #define SND_HWDEP_OPEN_DUPLEX (O_RDWR)
#define SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK) #define SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK)
typedef struct _snd_hwdep snd_hwdep_t;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
typedef struct _snd_hwdep snd_hwdep_t;
int snd_hwdep_open(snd_hwdep_t **handle, int card, int device, int mode); int snd_hwdep_open(snd_hwdep_t **handle, int card, int device, int mode);
int snd_hwdep_close(snd_hwdep_t *handle); int snd_hwdep_close(snd_hwdep_t *handle);
int snd_hwdep_poll_descriptor(snd_hwdep_t *handle); int snd_hwdep_poll_descriptor(snd_hwdep_t *handle);

View file

@ -1,8 +1,4 @@
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _snd_input snd_input_t; typedef struct _snd_input snd_input_t;
typedef enum _snd_input_type { typedef enum _snd_input_type {
@ -10,6 +6,10 @@ typedef enum _snd_input_type {
SND_INPUT_BUFFER, SND_INPUT_BUFFER,
} snd_input_type_t; } snd_input_type_t;
#ifdef __cplusplus
extern "C" {
#endif
int snd_input_stdio_open(snd_input_t **inputp, const char *file); int snd_input_stdio_open(snd_input_t **inputp, const char *file);
int snd_input_stdio_attach(snd_input_t **inputp, FILE *fp, int close); int snd_input_stdio_attach(snd_input_t **inputp, FILE *fp, int close);
int snd_input_buffer_open(snd_input_t **inputp, const char *buffer, int size); int snd_input_buffer_open(snd_input_t **inputp, const char *buffer, int size);

View file

@ -1,8 +1,4 @@
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _snd_output snd_output_t; typedef struct _snd_output snd_output_t;
typedef enum _snd_output_type { typedef enum _snd_output_type {
@ -10,6 +6,10 @@ typedef enum _snd_output_type {
SND_OUTPUT_BUFFER, SND_OUTPUT_BUFFER,
} snd_output_type_t; } snd_output_type_t;
#ifdef __cplusplus
extern "C" {
#endif
int snd_output_stdio_open(snd_output_t **outputp, const char *file); int snd_output_stdio_open(snd_output_t **outputp, const char *file);
int snd_output_stdio_attach(snd_output_t **outputp, FILE *fp, int close); int snd_output_stdio_attach(snd_output_t **outputp, FILE *fp, int close);
int snd_output_buffer_open(snd_output_t **outputp); int snd_output_buffer_open(snd_output_t **outputp);

View file

@ -4,12 +4,12 @@
* * * *
****************************************************************************/ ****************************************************************************/
typedef struct snd_midi_event snd_midi_event_t;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
typedef struct snd_midi_event snd_midi_event_t;
int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev); int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev);
int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize); int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize);
void snd_midi_event_free(snd_midi_event_t *dev); void snd_midi_event_free(snd_midi_event_t *dev);