# HG changeset patch # User Binki # Date 2009-03-17 23:45:58 # Node ID 6fe4b438c918ea303872a2e28d4ffaee2e334618 # Parent 7b322e60270cc92f27cbd95b398eeb42bd59c535 started the common configuration interface diff --git a/src/common/options.h b/src/common/options.h --- a/src/common/options.h +++ b/src/common/options.h @@ -17,9 +17,23 @@ along with distren. If not, see . */ +/* + 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 -int genericfunc(); +/* + 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