page: convert to C++

This commit is contained in:
Max Kellermann
2013-01-30 09:18:52 +01:00
parent 718fd97612
commit fe3f0332f7
9 changed files with 132 additions and 150 deletions

View File

@@ -85,12 +85,12 @@ struct HttpdOutput {
/**
* The header page, which is sent to every client on connect.
*/
struct page *header;
Page *header;
/**
* The metadata, which is sent to every client.
*/
struct page *metadata;
Page *metadata;
/**
* The configured name.
@@ -178,14 +178,14 @@ struct HttpdOutput {
* Reads data from the encoder (as much as available) and
* returns it as a new #page object.
*/
page *ReadPage();
Page *ReadPage();
/**
* Broadcasts a page struct to all clients.
*
* Mutext must not be locked.
*/
void BroadcastPage(struct page *page);
void BroadcastPage(Page *page);
/**
* Broadcasts data from the encoder to all clients.