File: http.h

package info (click to toggle)
tvoe 0.1-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, trixie
  • size: 160 kB
  • ctags: 125
  • sloc: ansic: 826; yacc: 122; lex: 44; sh: 44; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 518 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __INCLUDED_GETSH_HTTP
#define __INCLUDED_GETSH_HTTP

#include <event.h>
#include <event2/http.h>
#include "frontend.h"

extern struct evhttp *httpd;

/**
 * Adds URL handlers for the specified channel. On client request, the HTTP
 * module will tune to the specified transponder and send the service "sid" to
 * the client
 * @param name Human-readable channel name
 * @param sid Service ID
 * @param t Transponder to tune to
 */
extern void http_add_channel(const char *name, int sid, struct tune t);

#endif