Handlers in another function
This commit is contained in:
25
handlers.h
Normal file
25
handlers.h
Normal 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
|
||||
Reference in New Issue
Block a user