request meta
parent
848c56099e
commit
c623b59b08
@ -1,8 +1,9 @@
|
|||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#import "ui_darwin.h"
|
||||||
|
|
||||||
@protocol EventListener
|
@protocol EventListener
|
||||||
- (void) serverDidSetRoot:(NSString *)path;
|
- (void) serverDidSetRoot:(NSString *)path;
|
||||||
- (void) serverDidBeginHandlingRequest;
|
- (void) serverDidBeginHandlingRequest:(RequestMeta *)meta;
|
||||||
- (void) serverDidFinishHandlingRequest;
|
- (void) serverDidFinishHandlingRequest;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -1,6 +1,18 @@
|
|||||||
|
struct RequestMeta {
|
||||||
|
char *path;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct RequestMeta RequestMeta;
|
||||||
|
|
||||||
|
struct ResponseMeta {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct ResponseMeta ResponseMeta;
|
||||||
|
|
||||||
void initialize();
|
void initialize();
|
||||||
int run();
|
int run();
|
||||||
void shutdown();
|
void shutdown();
|
||||||
void set_root(char *);
|
void set_root(char *);
|
||||||
void begin_request();
|
void begin_request(RequestMeta *);
|
||||||
void end_request();
|
void end_request();
|
||||||
|
Loading…
Reference in New Issue