Handlers in another function

This commit is contained in:
Senad Uka
2022-11-19 23:18:44 +01:00
parent faebd267ca
commit ee1eb89e9a
6 changed files with 77 additions and 44 deletions

25
handlers.h Normal file
View File

@@ -0,0 +1,25 @@
//
// Created by hamo on 11/19/22.
//
#include <microhttpd.h>
#include <stdlib.h>
#include <string.h>
#ifndef NASUH_HANDLERS_H
#define NASUH_HANDLERS_H
#define PAGE "<html><head><title>nasuh search engine</title>"\
"</head><body>all your programming needs</body></html>"
enum MHD_Result
handle_all(void * cls,
struct MHD_Connection * connection,
const char * url,
const char * method,
const char * version,
const char * upload_data,
size_t * upload_data_size,
void ** ptr);
#endif //NASUH_HANDLERS_H