so://phie

soso

My pretty neat website
git clone git://soophie.de/soso

blob: c002658b0399e9d5b47b413bd759b261844ef992 (576 bytes)[raw]

1#include "page.h"

2#include "../templ/duc_page.h"

3

4static orb_rc_t init(orb_module_t *self) {

5 duc_page_t *data = (duc_page_t *) self->data;

6 if (self->param_list) {

7 page_param_list_t *param_list = (page_param_list_t *) self->param_list;

8 data->title = param_list->title;

9 data->module = param_list->module;

10 }

11 return ORB_OK;

12}

13

14static orb_rc_t render(orb_module_t *self, void *out) {

15 return ORB_ERR(duc_page_render(out, (duc_page_t *) self->data));

16}

17

18const orb_module_type_t PAGE_TYPE = {

19 .size = sizeof(duc_page_t),

20 .init = init,

21 .render = render,

22};