-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathutil.h
29 lines (22 loc) · 822 Bytes
/
util.h
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
#pragma once
#include "pcmchunk.h"
#include <netinet/in.h>
#include <stdbool.h>
#include <stdint.h>
#define INTERCOM_PORT 1704
void log_verbose(const char *format, ...);
void log_debug(const char *format, ...);
void log_error(const char *format, ...);
const char *print_ip(const struct in6_addr *addr);
const char *print_timespec(const struct timespec *t);
void print_packet(unsigned char *buf, int size);
const char *print_mac(const uint8_t mac[6]);
void add_fd(int efd, int fd, uint32_t events);
void del_fd(int efd, int fd);
const char *print_codec(int codec);
const char *print_stream_protocol(int protocol);
const char *print_inputpipe_status(int status);
const char *print_chunk(pcmChunk *chunk);
int max(const int a, const int b);
void add_fd(int efd, int fd, uint32_t events);
void del_fd(int efd, int fd);