taskrambler  v0.1.8
Web server and task management solution.
http/writer.c File Reference
#include <stdarg.h>
#include "class.h"
#include "stream.h"
#include "queue.h"
#include "http/writer.h"
#include "utils/memory.h"
+ Include dependency graph for http/writer.c:

Go to the source code of this file.

Functions

static int httpWriterCtor (void *_this, va_list *params)
 
static void httpWriterDtor (void *_this)
 
 INIT_IFACE (Class, httpWriterCtor, httpWriterDtor, NULL)
 
 INIT_IFACE (StreamWriter, httpWriterWrite)
 
 CREATE_CLASS (HttpWriter, NULL, IFACE(Class), IFACE(StreamWriter))
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file http/writer.c.

Function Documentation

CREATE_CLASS ( HttpWriter  ,
NULL  ,
IFACE(Class)  ,
IFACE(StreamWriter)   
)
static int httpWriterCtor ( void *  _this,
va_list *  params 
)
static

Definition at line 35 of file http/writer.c.

36 {
37  HttpWriter this = _this;
38 
39  this->queue = new(Queue);
40 
41  return 0;
42 }
static void httpWriterDtor ( void *  _this)
static

Definition at line 46 of file http/writer.c.

References MEM_FREE.

47 {
48  HttpWriter this = _this;
49 
50  delete(this->queue);
51 
52  if (NULL != this->buffer) {
53  MEM_FREE(this->buffer);
54  }
55 
56  if (NULL != this->current) {
57  delete(this->current);
58  }
59 }
#define MEM_FREE(seg)
Definition: memory.h:28
INIT_IFACE ( Class  ,
httpWriterCtor  ,
httpWriterDtor  ,
NULL   
)
INIT_IFACE ( StreamWriter  ,
httpWriterWrite   
)