add awesome-client.h with common #define and add copyright notice in awesome-client.c
This commit is contained in:
parent
23d2e4dd57
commit
7e755c17ea
|
@ -1,3 +1,25 @@
|
|||
/*
|
||||
* awesome-client.c - awesome client, communicate with socket
|
||||
*
|
||||
* Copyright © 2007 Julien Danjou <julien@danjou.info>
|
||||
* 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 <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -7,10 +29,9 @@
|
|||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
#include "awesome-client.h"
|
||||
#include "util.h"
|
||||
|
||||
#define CONTROL_UNIX_SOCKET_PATH ".awesome_so_ctl"
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* awesome-client.h - awesome client header
|
||||
*
|
||||
* Copyright © 2007 Julien Danjou <julien@danjou.info>
|
||||
*
|
||||
* 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
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue