From 11b0982a58929a80056b42677d14a7e4ab7da0d9 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 27 Feb 2008 09:07:52 +0100 Subject: [PATCH] rename awclient.[ch] to socket.[ch] --- Makefile.am | 7 +++---- awesome-client.c | 2 +- awesome.c | 2 +- common/{awclient.c => socket.c} | 4 ++-- common/{awclient.h => socket.h} | 6 +++--- 5 files changed, 10 insertions(+), 11 deletions(-) rename common/{awclient.c => socket.c} (96%) rename common/{awclient.h => socket.h} (90%) diff --git a/Makefile.am b/Makefile.am index aaf7c72f0..407cc2b64 100644 --- a/Makefile.am +++ b/Makefile.am @@ -129,12 +129,11 @@ awesome_SOURCES = \ window.c window.h \ rules.c rules.h \ mouse.c mouse.h \ - common/awclient.c \ + common/socket.c common/socket.h \ common/swindow.c common/swindow.h \ widget.c widget.h \ ewmh.c ewmh.h \ common/list.h structs.h \ - common/awclient.h \ common/configopts.h common/configopts.c awesome_SOURCES += $(LAYOUTS) awesome_SOURCES += $(WIDGETS) @@ -142,9 +141,9 @@ awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIB bin_PROGRAMS += awesome-client awesome_client_SOURCES = \ - awesome-client.c common/awclient.h \ + awesome-client.c \ + common/socket.c common/socket.h \ common/version.c common/version.h \ - common/awclient.c \ common/util.c common/util.h bin_PROGRAMS += awesome-message diff --git a/awesome-client.c b/awesome-client.c index 760079448..a09ef00e3 100644 --- a/awesome-client.c +++ b/awesome-client.c @@ -26,7 +26,7 @@ #include #include -#include "common/awclient.h" +#include "common/socket.h" #include "common/version.h" #include "common/util.h" diff --git a/awesome.c b/awesome.c index a628acf9d..67af703a6 100644 --- a/awesome.c +++ b/awesome.c @@ -53,7 +53,7 @@ #include "focus.h" #include "ewmh.h" #include "tag.h" -#include "common/awclient.h" +#include "common/socket.h" #include "common/util.h" #include "common/version.h" #include "common/configopts.h" diff --git a/common/awclient.c b/common/socket.c similarity index 96% rename from common/awclient.c rename to common/socket.c index 230679a13..c171f2f8b 100644 --- a/common/awclient.c +++ b/common/socket.c @@ -1,5 +1,5 @@ /* - * awclient.c - awesome client, communicate with socket, common functions + * socket.c - awesome client, communicate with socket, common functions * * Copyright © 2007-2008 Julien Danjou * Copyright © 2007 daniel@brinkers.de @@ -24,7 +24,7 @@ #include #include -#include "common/awclient.h" +#include "common/socket.h" #include "common/util.h" #define CONTROL_UNIX_SOCKET_PATH ".awesome_ctl." diff --git a/common/awclient.h b/common/socket.h similarity index 90% rename from common/awclient.h rename to common/socket.h index 4bc8492d2..bb01ee010 100644 --- a/common/awclient.h +++ b/common/socket.h @@ -1,5 +1,5 @@ /* - * awclient.h - awesome client header + * socket.h - awesome socket client header * * Copyright © 2007-2008 Julien Danjou * @@ -19,8 +19,8 @@ * */ -#ifndef AWESOME_COMMON_AWCLIENT_H -#define AWESOME_COMMON_AWCLIENT_H +#ifndef AWESOME_COMMON_SOCKET_H +#define AWESOME_COMMON_SOCKET_H struct sockaddr_un * get_client_addr(const char *); int get_client_socket(void);