ResolverAgent.cc File Reference

#include "config.h"
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <string>
#include <YCP.h>
#include <ycp/y2log.h>
#include <ycp/YCPMap.h>
#include "ResolverAgent.h"
#include <scr/SCRAgent.h>
#include <Y2.h>

Classes

struct  info_entry
 (ResolverAgent) More...

Functions

static const char * findKey (const char *tag)
bool allowedInfoKey (const char *key)
static char * nextWhitespace (const char *lptr)
static char * eatWhitespaces (const char *lptr)
static int fillCache (const char *filename)
static int flushCache (const char *filename)
static int allowedKey (const char *key)

Variables

static YCPMap localCache
static bool cacheDirty = false
static bool cacheValid = false
static bool writeHeader = false
static const char * resolver_keys []
static const info_entry headers []

Function Documentation

bool allowedInfoKey ( const char *  key  ) 

Referenced by flushCache(), and ResolverAgent::Write().

static int allowedKey ( const char *  key  )  [static]

References resolver_keys.

Referenced by ResolverAgent::Write().

static char* eatWhitespaces ( const char *  lptr  )  [static]

Referenced by fillCache().

static int fillCache ( const char *  filename  )  [static]
static const char* findKey ( const char *  tag  )  [static]

References info_entry::key.

Referenced by fillCache().

static int flushCache ( const char *  filename  )  [static]
static char* nextWhitespace ( const char *  lptr  )  [static]

Referenced by fillCache().


Variable Documentation

bool cacheDirty = false [static]
bool cacheValid = false [static]
const info_entry headers[] [static]
Initial value:
 {
    {"modified",    "# Modified_by:"},
    {"backup",      "# Backup:"},
    {"process",     "# Process: "},
    {"process_id",  "# Process_id: "},
    {"script",      "# Script:"},
    {"saveto",      "# Saveto:"},
    {"info",        "# Info:"},
    {0, 0}
}
YCPMap localCache [static]
const char* resolver_keys[] [static]
Initial value:
 {
  "search",
  "nameserver",
  "domain",
  "sortlist",
  "options",
  0
}

Referenced by allowedKey(), and ResolverAgent::Dir().

bool writeHeader = false [static]

Referenced by flushCache(), and ResolverAgent::Write().


Generated on a sunny day for yast2-core by doxygen 1.6.3