Use phonet.h

This commit is contained in:
Rémi Denis-Courmont 2009-07-03 18:32:31 +03:00 committed by Marcel Holtmann
parent e34e16b341
commit 073261e507
4 changed files with 4 additions and 15 deletions

View File

@ -4,6 +4,7 @@ noinst_LTLIBRARIES = libgisi.la
MAINTAINERCLEANFILES = Makefile.in
libgisi_la_SOURCES = \
phonet.h \
netlink.h netlink.c \
socket.h socket.c \
client.h client.c

View File

@ -33,12 +33,8 @@
#include <sys/socket.h>
#include <sys/uio.h>
#include <errno.h>
#include "phonet.h"
#include <glib.h>
#include <linux/types.h>
#include <linux/phonet.h>
#ifndef AF_PHONET
#define AF_PHONET 35
#endif
#include "socket.h"
#include "client.h"

View File

@ -36,11 +36,8 @@
#ifndef SOL_NETLINK
#define SOL_NETLINK 270 /* libc!? */
#endif
#ifndef AF_PHONET
#define AF_PHONET 35
#endif
#include "phonet.h"
#include <linux/rtnetlink.h>
#include <linux/phonet.h>
#include <glib.h>
#include "netlink.h"

View File

@ -31,14 +31,9 @@
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/types.h>
#include <linux/phonet.h>
#include "phonet.h"
#include <glib.h>
#ifndef AF_PHONET
#define AF_PHONET 35
#define PF_PHONET AF_PHONET
#endif
#include "socket.h"
GIOChannel *phonet_new(uint8_t resource)