From 7e755c17ea23b5ab7e6425f9f7c769c2aa73023d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 27 Oct 2007 18:47:13 +0200 Subject: [PATCH] add awesome-client.h with common #define and add copyright notice in awesome-client.c --- awesome-client.c | 25 +++++++++++++++++++++++-- awesome-client.h | 28 ++++++++++++++++++++++++++++ awesome.c | 2 +- 3 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 awesome-client.h diff --git a/awesome-client.c b/awesome-client.c index ad3b902d9..afdd6495b 100644 --- a/awesome-client.c +++ b/awesome-client.c @@ -1,3 +1,25 @@ +/* + * awesome-client.c - awesome client, communicate with socket + * + * Copyright © 2007 Julien Danjou + * Copyright © 2007 daniel@brinkers.de + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + #include #include #include @@ -7,10 +29,9 @@ #include #include +#include "awesome-client.h" #include "util.h" -#define CONTROL_UNIX_SOCKET_PATH ".awesome_so_ctl" - int main() { diff --git a/awesome-client.h b/awesome-client.h new file mode 100644 index 000000000..c8fec5fdc --- /dev/null +++ b/awesome-client.h @@ -0,0 +1,28 @@ +/* + * awesome-client.h - awesome client header + * + * Copyright © 2007 Julien Danjou + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#ifndef AWESOME_AWESOME_CLIENT_H +#define AWESOME_AWESOME_CLIENT_H + +#define CONTROL_UNIX_SOCKET_PATH ".awesome_so_ctl" + +#endif +// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 diff --git a/awesome.c b/awesome.c index eea19ecf9..4dad66db3 100644 --- a/awesome.c +++ b/awesome.c @@ -46,9 +46,9 @@ #include "statusbar.h" #include "uicb.h" #include "window.h" +#include "awesome-client.h" #define CONTROL_FIFO_PATH ".awesome_ctl" -#define CONTROL_UNIX_SOCKET_PATH ".awesome_so_ctl" static int (*xerrorxlib) (Display *, XErrorEvent *); static Bool running = True;