Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
e99ebfae
Commit
e99ebfae
authored
May 21, 2017
by
Marvin Scholz
Committed by
Philipp Schafft
May 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move helper macros in admin.c to the top
parent
0db820c9
Pipeline
#127
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
src/admin.c
src/admin.c
+13
-12
No files found.
src/admin.c
View file @
e99ebfae
...
...
@@ -45,6 +45,19 @@
#define CATMODULE "admin"
/* Helper macros */
#define COMMAND_REQUIRE(client,name,var) \
do { \
(var) = httpp_get_query_param((client)->parser, (name)); \
if((var) == NULL) { \
client_send_error((client), 400, 0, "Missing parameter"); \
return; \
} \
} while(0);
#define COMMAND_OPTIONAL(client,name,var) \
(var) = httpp_get_query_param((client)->parser, (name))
/* special commands */
#define COMMAND_ERROR ADMIN_COMMAND_ERROR
#define COMMAND_ANY ADMIN_COMMAND_ANY
...
...
@@ -558,18 +571,6 @@ static void admin_handle_mount_request(client_t *client, source_t *source)
}
}
#define COMMAND_REQUIRE(client,name,var) \
do { \
(var) = httpp_get_query_param((client)->parser, (name)); \
if((var) == NULL) { \
client_send_error((client), 400, 0, "Missing parameter"); \
return; \
} \
} while(0);
#define COMMAND_OPTIONAL(client,name,var) \
(var) = httpp_get_query_param((client)->parser, (name))
static
void
html_success
(
client_t
*
client
,
char
*
message
)
{
ssize_t
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment