GNU libmicrohttpd  0.9.72
response_options.c
Go to the documentation of this file.
1 /*
2  This file is part of libmicrohttpd
3  Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
25 #include "internal.h"
26 
27 
35 void
37 {
38  response->v10_only = true;
39 }
40 
41 
50 void
52  MHD_RequestTerminationCallback
53  termination_cb,
54  void *termination_cb_cls)
55 {
56  /* Q: should we assert termination_cb non-NULL? */
57  response->termination_cb = termination_cb;
58  response->termination_cb_cls = termination_cb_cls;
59 }
60 
61 
62 /* end of response_option.c */
internal shared structures
void MHD_response_option_termination_callback(struct MHD_Response *response, MHD_RequestTerminationCallback termination_cb, void *termination_cb_cls)
void MHD_response_option_v10_only(struct MHD_Response *response)
void * termination_cb_cls
Definition: internal.h:1617
bool v10_only
Definition: internal.h:1685
MHD_RequestTerminationCallback termination_cb
Definition: internal.h:1612