/* spacenavd - a free software replacement driver for 6dof space-mice. Copyright (C) 2007-2009 John Tsiombikas 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 3 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, see . */ #ifndef CLIENT_H_ #define CLIENT_H_ #include "config.h" #ifdef USE_X11 #include #endif /* client types */ enum { CLIENT_X11, /* through the magellan X11 protocol */ CLIENT_UNIX /* through the new UNIX domain socket */ }; struct client; int init_clients(void); struct client *add_client(int type, void *cdata); void remove_client(struct client *client); int get_client_type(struct client *client); int get_client_socket(struct client *client); #ifdef USE_X11 Window get_client_window(struct client *client); #endif void set_client_sensitivity(struct client *client, float sens); float get_client_sensitivity(struct client *client); /* these two can be used to iterate over all clients */ struct client *first_client(void); struct client *next_client(void); #endif /* CLIENT_H_ */