Subversion Repositories RepoView

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
/* $Id: page.c 6 2024-08-21 00:44:17Z nishi $ */
2
 
3
#include "rv_page.h"
4
 
5
#include "rv_query.h"
6
#include "rv_util.h"
6 nishi 7
#include "rv_auth.h"
1 nishi 8
 
9
#include "../config.h"
10
 
11
#include <stdio.h>
12
#include <stdlib.h>
13
 
14
char* buffer;
6 nishi 15
char* user;
1 nishi 16
 
17
void render_page(void);
18
 
3 nishi 19
void add_data(char** data, const char* txt) {
1 nishi 20
	char* tmp = *data;
21
	*data = rv_strcat(tmp, txt);
22
	free(tmp);
23
}
24
 
3 nishi 25
void rv_process_page(void) {
1 nishi 26
	buffer = malloc(1);
27
	buffer[0] = 0;
6 nishi 28
	user = rv_logged_in();
1 nishi 29
	render_page();
30
}
31
 
3 nishi 32
void rv_print_page(void) { printf("%s\n", buffer); }