kopia lustrzana https://github.com/FreeSpacenav/spnavcfg
compatibility with spacenavd 0.3.1
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spnavcfg@72 ef983eb1-d774-4af8-acfd-baaf7b16a646pull/1/head
rodzic
cb7c531ae9
commit
5f15b957b4
2
README
2
README
|
@ -1,4 +1,4 @@
|
|||
spnavcfg 0.1
|
||||
spnavcfg 0.1.1
|
||||
------------
|
||||
|
||||
1. About
|
||||
|
|
5
back.c
5
back.c
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
spnavcfg - an interactive GUI configurator for the spacenavd daemon.
|
||||
Copyright (C) 2007 John Tsiombikas <nuclear@siggraph.org>
|
||||
Copyright (C) 2007-2009 John Tsiombikas <nuclear@siggraph.org>
|
||||
|
||||
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
|
||||
|
@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "cmd.h"
|
||||
|
||||
#define CFGFILE "/etc/spnavrc"
|
||||
#define PIDFILE "/var/run/spnavd.pid"
|
||||
|
||||
int get_daemon_pid(void);
|
||||
static int update_cfg(void);
|
||||
|
@ -97,7 +98,7 @@ int get_daemon_pid(void)
|
|||
FILE *fp;
|
||||
char buf[64];
|
||||
|
||||
if(!(fp = fopen("/tmp/.spnavd.pid", "r"))) {
|
||||
if(!(fp = fopen(PIDFILE, "r"))) {
|
||||
fprintf(stderr, "no spacenav pid file, can't find daemon\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
spacenavd - a free software replacement driver for 6dof space-mice.
|
||||
Copyright (C) 2007 John Tsiombikas <nuclear@siggraph.org>
|
||||
Copyright (C) 2007-2009 John Tsiombikas <nuclear@siggraph.org>
|
||||
|
||||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
spacenavd - a free software replacement driver for 6dof space-mice.
|
||||
Copyright (C) 2007 John Tsiombikas <nuclear@siggraph.org>
|
||||
Copyright (C) 2007-2009 John Tsiombikas <nuclear@siggraph.org>
|
||||
|
||||
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
|
||||
|
|
2
cmd.h
2
cmd.h
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
spnavcfg - an interactive GUI configurator for the spacenavd daemon.
|
||||
Copyright (C) 2007 John Tsiombikas <nuclear@siggraph.org>
|
||||
Copyright (C) 2007-2009 John Tsiombikas <nuclear@siggraph.org>
|
||||
|
||||
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
|
||||
|
|
2
front.c
2
front.c
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
spnavcfg - an interactive GUI configurator for the spacenavd daemon.
|
||||
Copyright (C) 2007 John Tsiombikas <nuclear@siggraph.org>
|
||||
Copyright (C) 2007-2009 John Tsiombikas <nuclear@siggraph.org>
|
||||
|
||||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
spnavcfg - an interactive GUI configurator for the spacenavd daemon.
|
||||
Copyright (C) 2007 John Tsiombikas <nuclear@siggraph.org>
|
||||
Copyright (C) 2007-2009 John Tsiombikas <nuclear@siggraph.org>
|
||||
|
||||
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
|
||||
|
|
Ładowanie…
Reference in New Issue