Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
http_server.h
Go to the documentation of this file.
1
/*
2
This file is part of darktable,
3
Copyright (C) 2009-2011 johannes hanika.
4
Copyright (C) 2011 Ulrich Pegelow.
5
Copyright (C) 2012 Richard Wonka.
6
Copyright (C) 2013-2016 Tobias Ellinghaus.
7
Copyright (C) 2020 Pascal Obry.
8
Copyright (C) 2022 Martin BaĆinka.
9
10
darktable is free software: you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation, either version 3 of the License, or
13
(at your option) any later version.
14
15
darktable is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with darktable. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
#pragma once
25
26
#include <libsoup/soup.h>
27
28
typedef
gboolean (*
dt_http_server_callback
)(GHashTable *query, gpointer user_data);
29
30
typedef
struct
dt_http_server_t
31
{
32
SoupServer *
server
;
33
char
*
url
;
34
}
dt_http_server_t
;
35
40
dt_http_server_t
*
dt_http_server_create
(
const
int
*ports,
const
int
n_ports,
const
char
*
id
,
41
const
dt_http_server_callback
callback, gpointer user_data);
42
46
void
dt_http_server_kill
(
dt_http_server_t
*server);
47
48
// clang-format off
49
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
50
// vim: shiftwidth=2 expandtab tabstop=2 cindent
51
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
52
// clang-format on
53
dt_http_server_kill
void dt_http_server_kill(dt_http_server_t *server)
Definition
http_server.c:264
dt_http_server_callback
gboolean(* dt_http_server_callback)(GHashTable *query, gpointer user_data)
Definition
http_server.h:28
dt_http_server_create
dt_http_server_t * dt_http_server_create(const int *ports, const int n_ports, const char *id, const dt_http_server_callback callback, gpointer user_data)
Definition
http_server.c:173
dt_http_server_t
Definition
http_server.h:31
dt_http_server_t::server
SoupServer * server
Definition
http_server.h:32
dt_http_server_t::url
char * url
Definition
http_server.h:33
src
common
http_server.h
Generated by
1.9.8