Skip to content

Commit

Permalink
add licence headers to source files
Browse files Browse the repository at this point in the history
  • Loading branch information
wertarbyte committed Dec 26, 2010
1 parent c0cedab commit 0b3037c
Show file tree
Hide file tree
Showing 24 changed files with 118 additions and 3 deletions.
5 changes: 5 additions & 0 deletions cmdsocket.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
Expand Down
5 changes: 5 additions & 0 deletions cmdsocket.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

int bind_cmdsocket(char *name);
struct command *read_command(int cmd_fd);
int send_command(int cmd_fd, enum command_type type, char *param, int passfd, int exclusive, char *tag);
Expand Down
5 changes: 5 additions & 0 deletions command.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include "devtag.h"
#define TH_COMMAND_PARAM_LENGTH 256

Expand Down
5 changes: 5 additions & 0 deletions devices.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
Expand Down
5 changes: 5 additions & 0 deletions devices.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include "devtag.h"

typedef struct device {
Expand Down
5 changes: 5 additions & 0 deletions devtag.h
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#define TH_DEVICE_TAG_LENGTH 256
5 changes: 5 additions & 0 deletions eventnames.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdlib.h>
#include <linux/input.h>
#include <string.h>
Expand Down
5 changes: 5 additions & 0 deletions eventnames.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <linux/input.h>

const char *lookup_event_name_i(const int evtype, const int evcode);
Expand Down
5 changes: 5 additions & 0 deletions eventtable.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <linux/input.h>

#define EV_MAP( N ) [ N ] = #N
Expand Down
5 changes: 5 additions & 0 deletions ignore.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdio.h>
#include <stdlib.h>
#include "ignore.h"
Expand Down
5 changes: 5 additions & 0 deletions ignore.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

typedef struct ignore {
int code;
struct ignore *next;
Expand Down
5 changes: 5 additions & 0 deletions keystate.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdio.h>
#include <linux/input.h>
#include <stdlib.h>
Expand Down
5 changes: 5 additions & 0 deletions keystate.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <linux/input.h>
typedef unsigned short keystate_holder[KEY_MAX+1];

Expand Down
5 changes: 5 additions & 0 deletions obey.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdio.h>
#include "devices.h"
#include "command.h"
Expand Down
5 changes: 5 additions & 0 deletions obey.h
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

int obey_command( struct command *cmd );
5 changes: 5 additions & 0 deletions th-cmd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
Expand Down
6 changes: 3 additions & 3 deletions thd.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* thd.c - the triggerhappy daemon
* by Stefan Tomanek <[email protected]>
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdio.h>
Expand Down
5 changes: 5 additions & 0 deletions thd.h
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

void cleanup(void);
5 changes: 5 additions & 0 deletions trigger.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <string.h>
#include <ctype.h>
#include <stdio.h>
Expand Down
5 changes: 5 additions & 0 deletions trigger.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include "devtag.h"
#define TRIGGER_MODIFIERS_MAX 5

Expand Down
5 changes: 5 additions & 0 deletions triggerparser.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <string.h>
#include <ctype.h>
#include <stdio.h>
Expand Down
5 changes: 5 additions & 0 deletions triggerparser.h
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

trigger* parse_trigger(char* line);
5 changes: 5 additions & 0 deletions uinput.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

#include <stdio.h>
#include <string.h>
#include <unistd.h>
Expand Down
5 changes: 5 additions & 0 deletions uinput.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright 2010 Stefan Tomanek <[email protected]>
* You have permission to copy, modify, and redistribute under the
* terms of the GPL. For full license terms, see COPYING.
*/

int open_uinput(const char *path);
void close_uinput();
int send_event(const int type, const int code, const int value);

0 comments on commit 0b3037c

Please sign in to comment.