Refactor and rewrite.

Perl script is removed in favour of C. Stale documentation and initfiles
are removed for now also.

C interface works, but still needs work (for example, mDNS is missing) -
see TODO.
This commit is contained in:
James Laird
2013-04-01 18:57:08 +11:00
parent 98a86371d0
commit a2fb5d219d
26 changed files with 1767 additions and 3524 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef _COMMON_H
#define _COMMON_H
#include <openssl/rsa.h>
#include <stdint.h>
#include "audio.h"
typedef struct {
char *password;
char hw_addr[6];
int port;
audio_ops *output;
int buffer_start_fill;
} shairport_cfg;
void die(char *format, ...);
void warn(char *format, ...);
void debug(char *format, ...);
uint8_t *base64_dec(char *input, int *outlen);
char *base64_enc(uint8_t *input, int length);
#define RSA_MODE_AUTH (0)
#define RSA_MODE_KEY (1)
uint8_t *rsa_apply(uint8_t *input, int inlen, int *outlen, int mode);
extern shairport_cfg config;
#endif // _COMMON_H