mirror of
https://github.com/SuperBFG7/ympd
synced 2025-10-29 12:57:50 +00:00
removed perl generator, added c generator
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "http_server.h"
|
||||
#include "http_files.h"
|
||||
|
||||
int callback_http(struct mg_connection *c)
|
||||
{
|
||||
|
||||
@@ -21,6 +21,14 @@
|
||||
|
||||
#include "mongoose.h"
|
||||
|
||||
struct embedded_file {
|
||||
const char *name;
|
||||
const unsigned char *data;
|
||||
const char *mimetype;
|
||||
size_t size;
|
||||
};
|
||||
|
||||
const struct embedded_file *find_embedded_file(const char *name);
|
||||
int callback_http(struct mg_connection *c);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -171,8 +171,7 @@ int callback_mpd(struct mg_connection *c)
|
||||
"}", mpd.host, mpd.port, mpd.password ? "true" : "false");
|
||||
break;
|
||||
case MPD_API_SET_MPDPASS:
|
||||
if(sscanf(c->content, "MPD_API_SET_MPDPASS,%m[^\t\n ]", &p_charbuf) &&
|
||||
p_charbuf != NULL)
|
||||
if(sscanf(c->content, "MPD_API_SET_MPDPASS,%m[^\t\n ]", &p_charbuf))
|
||||
{
|
||||
if(mpd.password)
|
||||
free(mpd.password);
|
||||
|
||||
@@ -84,7 +84,6 @@ int main(int argc, char **argv)
|
||||
mg_set_option(server, "listening_port", optarg);
|
||||
break;
|
||||
case 'u':
|
||||
printf("Strarg is %s\n", optarg);
|
||||
mg_set_option(server, "run_as_user", optarg);
|
||||
break;
|
||||
case 'v':
|
||||
|
||||
Reference in New Issue
Block a user