/usr/include/shairport/shairport.h is in libshairport-dev 1.2.1~git20120510.cbed0c1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | #ifndef __SHAIRPORT_H__
#define __SHAIRPORT_H__
#include <ao/ao.h>
#include <stdint.h>
#define HWID_SIZE 6
#define SHAIRPORT_LOG 1
#ifndef LOG_INFO
#define LOG_INFO 5
#endif
#ifndef LOG_DEBUG
#define LOG_DEBUG 6
#endif
#define LOG_DEBUG_V 7
#define LOG_DEBUG_VV 8
struct shairbuffer
{
char *data;
int current;
int maxsize;
int marker;
};
struct keyring
{
char *aeskey;
char *aesiv;
char *fmt;
};
struct comms
{
int in[2];
int out[2];
};
struct connection
{
struct shairbuffer recv;
struct shairbuffer resp;
struct keyring *keys; // Does not point to malloc'd memory.
#ifndef XBMC
struct comms *hairtunes;
#endif
int clientSocket;
char *password;
};
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
struct printfPtr
{
int (*extprintf)(const char* msg, size_t msgSize);
};
struct AudioOutput
{
void (*ao_initialize)(void);
int (*ao_play)(ao_device *, char *, uint32_t);
int (*ao_default_driver_id)(void);
ao_device* (*ao_open_live)( int, ao_sample_format *, ao_option *);
int (*ao_close)(ao_device *);
/* -- Device Setup/Playback/Teardown -- */
int (*ao_append_option)(ao_option **, const char *, const char *);
void (*ao_free_options)(ao_option *);
char* (*ao_get_option)(ao_option *, const char* );
void (*ao_set_metadata)(const char *buffer, unsigned int size);
void (*ao_set_metadata_coverart)(const char *buffer, unsigned int size);
};
int shairport_main(int argc, char **argv);
void shairport_exit(void);
int shairport_loop(void);
int shairport_is_running(void);
void shairport_set_ao(struct AudioOutput *ao);
void shairport_set_printf(struct printfPtr *funcPtr);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
|