Files
@ 47492e17f959
Branch filter:
Location: DistRen/src/common/libremoteio.h - annotation
47492e17f959
1.5 KiB
text/plain
example distrenjob XML description
4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 1665faff5bfd 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 4b9e91831d84 bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a f8b15ae5255a 75a599984bd2 bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a bbfee659a30a 4b9e91831d84 75a599984bd2 4b9e91831d84 4b9e91831d84 1665faff5bfd 4b9e91831d84 4b9e91831d84 | /*
Copyright 2009 Nathan Phillip Brink
This file is a part of DistRen.
DistRen is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DistRen 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with DistRen. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DISTREN_LIBREMOTEIO_H
#define _DISTREN_LIBREMOTEIO_H
#include "remoteio.h"
#include <confuse.h>
/**
private declarations for remoteio, to be included by options.c and remoteio.c
*/
enum remoteio_method
{
REMOTEIO_METHOD_SSH,
/* REMOTEIO_METHOD_TCP */ /*< someday, maybe */
/* REMOETIO_METHOD_XMLRPC */ /*< again, maybe someday */
};
struct remoteio_server
{
struct remoteio_server *next;
char *name; /*< The friendly named passed to remoteio_open() */
char *hostname;
char *username;
enum remoteio_method method;
unsigned int types; /*< See ``Server types'' in protocol.h */
};
struct remoteio_opts
{
char *ssh_command;
struct remoteio_server *servers;
};
int remoteio_config(cfg_t *cfg, struct remoteio_opts *opts);
#endif
|