mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-30 08:19:14 +02:00
fix
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
#include "ipc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
static int make_server_socket(const char *path)
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define IPC_SOCKET_PATH "/tmp/ipc_demo.sock"
|
||||
#define IPC_BACKLOG 1
|
||||
@@ -13,7 +16,7 @@ typedef struct {
|
||||
volatile int running;
|
||||
ipc_client_fn handler;
|
||||
pthread_t _tid; /* internal — do not touch */
|
||||
const char* socket_path;
|
||||
char* socket_path;
|
||||
} ipc_ctx_t;
|
||||
int create_ipc(ipc_ctx_t *ctx, ipc_client_fn handler, const char* socket_path);
|
||||
void destroy_ipc(ipc_ctx_t *ctx);
|
||||
Reference in New Issue
Block a user