Changeset - 17bf31a10aa6
[Not reviewed]
default
0 3 0
Nathan Brink (binki) - 16 years ago 2009-06-29 23:06:04
ohnobinki@ohnopublishing.net
worked on _distren_getoptions
3 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/client/libdistren.h
Show inline comments
 
@@ -28,12 +28,13 @@
 

	
 
struct distren
 
{
 
  distren_malloc_t malloc;
 
  distren_free_t free;
 
  struct options_common *options; /*< use a pointer just to avoid #include "options.h"? */
 
  char *server;
 
};
 

	
 
struct distren_job
 
{
 
  char *jobid;
 
};
src/client/libdistren_config.c
Show inline comments
 
@@ -40,13 +40,16 @@ int _distren_getoptions(distren_t handle
 
  if(options_init(0, NULL, &cfg, cfg_opts, "client", &handle->options))
 
    {
 
      fprintf(stderr, "error getting configuration\n");
 
      return 1;
 
    }
 
  
 
  return 1;
 
  handle->server = cfg_getstr(cfg, "server");
 
  fprintf(stderr, "using ``%s'' as server\n", handle->server);
 

	
 
  return 0;
 
}
 

	
 
/**
 
@todo stubish
 
 */
 
int _distren_loseoptions(distren_t handle)
src/common/options.c
Show inline comments
 
@@ -128,12 +128,14 @@ int options_init(int argc, char *argv[],
 
    case CFG_SUCCESS:
 
      break;
 
    }
 
  
 
  free(configfile);
 
  
 
  *mycfg = cfg_getsec((*allopts)->data->cfg, myname);
 

	
 
  return 0;
 
}
 

	
 
int options_free(struct options_common *opts)
 
{
 
  /* free the other common_options struct's members */
0 comments (0 inline, 0 general)