mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-30 08:29:53 +00:00
CMake: requires DATADIR, renamed main.c
This commit is contained in:
parent
9ee50d00b7
commit
1b44249105
@ -3,8 +3,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "http_server.h"
|
#include "http_server.h"
|
||||||
|
|
||||||
#define INSTALL_DATADIR "/home/andy/workspace/ympd"
|
#define LOCAL_RESOURCE_PATH DATADIR"/htdocs"
|
||||||
#define LOCAL_RESOURCE_PATH INSTALL_DATADIR"/htdocs"
|
|
||||||
char *resource_path = LOCAL_RESOURCE_PATH;
|
char *resource_path = LOCAL_RESOURCE_PATH;
|
||||||
|
|
||||||
struct serveable {
|
struct serveable {
|
||||||
@ -38,7 +37,7 @@ int callback_http(struct libwebsocket_context *context,
|
|||||||
void *in, size_t len)
|
void *in, size_t len)
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[256];
|
||||||
int n;
|
size_t n;
|
||||||
|
|
||||||
switch (reason) {
|
switch (reason) {
|
||||||
case LWS_CALLBACK_HTTP:
|
case LWS_CALLBACK_HTTP:
|
||||||
|
Loading…
Reference in New Issue
Block a user