Files
@ 6fe4b438c918
Branch filter:
Location: DistRen/src/common/options.h - annotation
6fe4b438c918
1.7 KiB
text/plain
started the common configuration interface
7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 7df3f36d8160 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 2c72cec363fa 2c72cec363fa 2c72cec363fa 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 6fe4b438c918 2c72cec363fa 2c72cec363fa | /*
Copyright 2008 Nathan Phillip Brink, Ethan Zonca
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/>.
*/
/*
The point of this file is to handle options parsing that is common to both the server and client of distren. Options parsing that is specific to either should be managed by the server or the client. This means that the user of this interface will be given a handle to a part of a confuse config tree and have to eat that part of the tree to fulfill its own options.
Unfortunately, this extra layer of abstraction shall possibly require a common_opts struct to be made that must be passed to all functions that use the common config. This would include any interface in /src/common/
*/
#ifndef _DISTREN_OPTIONS_H
#define _DISTREN_OPTIONS_H
/*
incomplete:
maybe remoteio.h should define its own struct which is injected into this struct and have its own handlers that parse its section of the confuse config file... (it'd be more modular)?
*/
struct options_common
{
char *remoteio_rsh;
char *remoteio_user;
struct remoteio_opts *remoteio;
};
#endif
|