| 100 int nsapi_handle_request(NSAPISession *sn, NSAPIRequest *rq); |
100 int nsapi_handle_request(NSAPISession *sn, NSAPIRequest *rq); |
| 101 int nsapi_finish_request(NSAPISession *sn, NSAPIRequest *rq); |
101 int nsapi_finish_request(NSAPISession *sn, NSAPIRequest *rq); |
| 102 |
102 |
| 103 void nsapi_saf_return(Session *sn, Request *rq, int ret); |
103 void nsapi_saf_return(Session *sn, Request *rq, int ret); |
| 104 |
104 |
| |
105 /* |
| |
106 * return: 0: noop, 1: abort |
| |
107 */ |
| |
108 typedef int(*nsapi_return_callback_func)(Session *, Request *, int); |
| |
109 |
| |
110 /* |
| |
111 * Sets a callback function, that is called by nsapi_function_return. |
| |
112 * If the callback returns 1, nsapi_function_return does not return to the |
| |
113 * normal nsapi processing. |
| |
114 * |
| |
115 * This function is only useful for test implementations, to intercept |
| |
116 * nsapi_function_return calls. |
| |
117 */ |
| |
118 void nsapi_set_saf_return_callback(nsapi_return_callback_func callback); |
| |
119 |
| 105 void request_free_resources(NSAPISession *sn, NSAPIRequest *rq); |
120 void request_free_resources(NSAPISession *sn, NSAPIRequest *rq); |
| 106 |
121 |
| 107 int nsapi_authtrans(NSAPISession *sn, NSAPIRequest *rq); |
122 int nsapi_authtrans(NSAPISession *sn, NSAPIRequest *rq); |
| 108 int nsapi_nametrans(NSAPISession *sn, NSAPIRequest *rq); |
123 int nsapi_nametrans(NSAPISession *sn, NSAPIRequest *rq); |
| 109 int nsapi_pathcheck(NSAPISession *sn, NSAPIRequest *rq); |
124 int nsapi_pathcheck(NSAPISession *sn, NSAPIRequest *rq); |