diff options
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/ssh-conn.h | 66 | ||||
| -rw-r--r-- | includes/xmlrpc-client.h | 43 | ||||
| -rw-r--r-- | includes/xmlrpc-server.h | 25 | 
3 files changed, 0 insertions, 134 deletions
| diff --git a/includes/ssh-conn.h b/includes/ssh-conn.h deleted file mode 100644 index f1b08c46..00000000 --- a/includes/ssh-conn.h +++ /dev/null @@ -1,66 +0,0 @@ -/*  -   Remote Client -   HardInfo - Displays System Information -   Copyright (C) 2003-2009 L. A. F. Pereira <l@tia.mat.br> - -   Based on ssh-method.c from GnomeVFS -   Copyright (C) 1999 Free Software Foundation -   Original author: Ian McKellar <yakk@yakk.net> - -   The Gnome Library is free software; you can redistribute it and/or -   modify it under the terms of the GNU Library General Public License as -   published by the Free Software Foundation; either version 2 of the -   License, or (at your option) any later version. - -   The Gnome Library 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 -   Library General Public License for more details. - -   You should have received a copy of the GNU Library General Public -   License along with the Gnome Library; see the file COPYING.LIB.  If not, -   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -   Boston, MA 02111-1307, USA. -*/ -#ifndef __SSH_CONN_H__ -#define __SSH_CONN_H__ - -#include "config.h" -#ifdef HAS_LIBSOUP -#include <libsoup/soup.h> - -typedef struct _SSHConn SSHConn; - -typedef enum { -    SSH_CONN_OK, -    SSH_CONN_NO_URI, -    SSH_CONN_UNKNOWN_PROTOCOL, -    SSH_CONN_UNKNOWN_ERROR, -    SSH_CONN_CANNOT_SPAWN_SSH, -    SSH_CONN_BAD_PARAMS, -    SSH_CONN_PERMISSION_DENIED, -    SSH_CONN_HOST_KEY_CHECK_FAIL, -    SSH_CONN_REFUSED, -    SSH_CONN_INVALID_USER_PASS, -} SSHConnResponse; - -struct _SSHConn { -    SoupURI *uri; -    int fd_read, fd_write, fd_error; -    GPid pid; -    gchar *askpass_path; -     -    gint exit_status; -}; - -SSHConnResponse ssh_new(SoupURI * uri, -			SSHConn ** conn_return, gchar * command); -void ssh_close(SSHConn * conn); - -int ssh_write(SSHConn * conn, -	      gconstpointer buffer, gint num_bytes, gint * bytes_written); -int ssh_read(gint fd, gpointer buffer, gint num_bytes, gint * bytes_read); - -const char *ssh_conn_errors[10]; -#endif				/* HAS_LIBSOUP */ -#endif				/* __SSH_CONN_H__ */ diff --git a/includes/xmlrpc-client.h b/includes/xmlrpc-client.h deleted file mode 100644 index ddccf3aa..00000000 --- a/includes/xmlrpc-client.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - *    XMLRPC Client - *    HardInfo - Displays System Information - *    Copyright (C) 2003-2009 L. A. F. Pereira <l@tia.mat.br> - * - *    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, version 2. - * - *    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 St, Fifth Floor, Boston, MA  02110-1301 USA - */ - -#ifndef __XMLRPC_CLIENT_H__ -#define __XMLRPC_CLIENT_H__ - -#include "config.h" - -#ifdef HAS_LIBSOUP -#include <libsoup/soup.h> - -void xmlrpc_init(void); -gint xmlrpc_get_integer(gchar *addr, -                        gchar *method, -                        const gchar *param_types, -                        ...); -gchar *xmlrpc_get_string(gchar *addr, -                         gchar *method, -                         const gchar *param_types, -                         ...); -GValueArray *xmlrpc_get_array(gchar *addr, -                              gchar *method, -                              const gchar *param_types, -                              ...); -#endif /* HAS_LIBSOUP */ - -#endif	/* __XMLRPC_CLIENT_H__ */ diff --git a/includes/xmlrpc-server.h b/includes/xmlrpc-server.h deleted file mode 100644 index 19bd0f8a..00000000 --- a/includes/xmlrpc-server.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - *    HardInfo - Displays System Information - *    Copyright (C) 2003-2009 L. A. F. Pereira <l@tia.mat.br> - * - *    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, version 2. - * - *    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 St, Fifth Floor, Boston, MA  02110-1301 USA - */ -#ifndef __XMLRPC_SERVER_H__ -#define __XMLRPC_SERVER_H__ - -void xmlrpc_server_start(GMainLoop *main_loop); -void xmlrpc_server_init(void); - -#endif	/* __XMLRPC_SERVER_H__ */ - | 
