Subversion Repositories RepoView

Rev

Rev 3 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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