rename signal -> sig

Meson puts the directory of the source file in the include path and then
it picks up our signal.h instead of the system one...
This commit is contained in:
Wim Taymans 2016-11-28 16:24:10 +01:00
parent 497febf2f1
commit 3dada4731c
10 changed files with 13 additions and 18 deletions

View file

@ -513,21 +513,17 @@ loop_add_signal (SpaLoopUtils *utils,
{
PinosLoopImpl *impl = SPA_CONTAINER_OF (utils, PinosLoopImpl, utils);
SpaSourceImpl *source;
#if 0
sigset_t mask;
#endif
source = calloc (1, sizeof (SpaSourceImpl));
source->source.loop = &impl->loop;
source->source.func = source_signal_func;
source->source.data = data;
#if 0
sigemptyset (&mask);
sigaddset (&mask, signal_number);
source->source.fd = signalfd (-1, &mask, SFD_CLOEXEC | SFD_NONBLOCK);
sigprocmask (SIG_BLOCK, &mask, NULL);
#endif
source->source.mask = SPA_IO_IN;
source->close = true;
source->func.signal = func;

View file

@ -26,7 +26,7 @@ extern "C" {
#include <spa/include/spa/list.h>
#include <spa/include/spa/loop.h>
#include <pinos/client/signal.h>
#include <pinos/client/sig.h>
typedef struct _PinosLoop PinosLoop;

View file

@ -34,7 +34,7 @@ typedef struct _PinosTransportArea PinosTransportArea;
#include <spa/node.h>
#include <pinos/client/mem.h>
#include <pinos/client/signal.h>
#include <pinos/client/sig.h>
#define PINOS_TRANSPORT_CMD_NONE 0
#define PINOS_TRANSPORT_CMD_NEED_DATA (1<<0)