From a2b50d45165e49ae500720b9006bbd7a1396126c Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Thu, 28 Jul 2011 19:22:51 -0400 Subject: Rename comm_structs.h -> track.h. --- src/comm.h | 2 +- src/comm_structs.h | 59 ------------------------------------------------------ src/track.c | 2 +- src/track.h | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 61 deletions(-) delete mode 100644 src/comm_structs.h create mode 100644 src/track.h (limited to 'src') diff --git a/src/comm.h b/src/comm.h index 1d9d8c2..f2e4472 100644 --- a/src/comm.h +++ b/src/comm.h @@ -25,7 +25,7 @@ #ifndef _LINPICKER_COMM_H_ #define _LINPICKER_COMM_H_ -#include "comm_structs.h" +#include "track.h" #include "client.h" #include "buffer.h" diff --git a/src/comm_structs.h b/src/comm_structs.h deleted file mode 100644 index b17a598..0000000 --- a/src/comm_structs.h +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @file - * @section AUTHORS - * - * Authors: - * Eamon Walsh - * Mark Rader - * - * @section LICENSE - * - * 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; under version 2 of the License. - * - * 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 _LINPICKER_COMM_STRUCTS_H_ -#define _LINPICKER_COMM_STRUCTS_H_ - -#include - -/* Messages sent by server */ -#define LINPICKER_REQUEST_UPDATE 0 - -/* Messages sent by client */ -#define LINPICKER_RESET 0 -#define LINPICKER_CREATE 1 -#define LINPICKER_UPDATE 2 -#define LINPICKER_DESTROY 3 -#define LINPICKER_NAME 4 - -#define LINPICKER_FLAG_POSITION 1 -#define LINPICKER_FLAG_TOPMOST 2 -#define LINPICKER_FLAG_BOTMOST 4 -#define LINPICKER_FLAG_ABOVE 8 -#define LINPICKER_FLAG_BELOW 16 -#define LINPICKER_FLAG_HIDDEN 32 -#define LINPICKER_FLAG_SHOWN 64 - -struct lin_message { - uint32_t type; - uint32_t view; - uint32_t flags; - uint32_t sibling; - uint32_t x; - uint32_t y; - uint32_t w; - uint32_t h; -}; - -#endif /* _LINPICKER_COMM_STRUCTS_H_ */ diff --git a/src/track.c b/src/track.c index cd98893..34dd4e8 100644 --- a/src/track.c +++ b/src/track.c @@ -49,7 +49,7 @@ #include "libvchan.h" #include "common.h" -#include "comm_structs.h" +#include "track.h" static struct libvchan *ctrl; diff --git a/src/track.h b/src/track.h new file mode 100644 index 0000000..aa93a05 --- /dev/null +++ b/src/track.h @@ -0,0 +1,59 @@ +/** + * @file + * @section AUTHORS + * + * Authors: + * Eamon Walsh + * Mark Rader + * + * @section LICENSE + * + * 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; under version 2 of the License. + * + * 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 _LINPICKER_TRACK_H_ +#define _LINPICKER_TRACK_H_ + +#include + +/* Messages sent by server */ +#define LINPICKER_REQUEST_UPDATE 0 + +/* Messages sent by client */ +#define LINPICKER_RESET 0 +#define LINPICKER_CREATE 1 +#define LINPICKER_UPDATE 2 +#define LINPICKER_DESTROY 3 +#define LINPICKER_NAME 4 + +#define LINPICKER_FLAG_POSITION 1 +#define LINPICKER_FLAG_TOPMOST 2 +#define LINPICKER_FLAG_BOTMOST 4 +#define LINPICKER_FLAG_ABOVE 8 +#define LINPICKER_FLAG_BELOW 16 +#define LINPICKER_FLAG_HIDDEN 32 +#define LINPICKER_FLAG_SHOWN 64 + +struct lin_message { + uint32_t type; + uint32_t view; + uint32_t flags; + uint32_t sibling; + uint32_t x; + uint32_t y; + uint32_t w; + uint32_t h; +}; + +#endif /* _LINPICKER_TRACK_H_ */ -- cgit v1.2.3