icd/icd_script.c File Reference

#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <gconf/gconf-client.h>
#include <osso-ic-gconf.h>
#include "icd_log.h"
#include "icd_script.h"

Classes

struct  icd_script_data

Defines

#define ICD_SCRIPT_MIN_TIMEOUT   1
#define ICD_SCRIPT_DEFAULT_TIMEOUT   15
#define ICD_SCRIPT_MAX_TIMEOUT   120
#define ICD_SCRIPT_GCONF_PATH   ICD_GCONF_SETTINGS "/network_scripts/timeout"
#define SCRIPT_IFACE   "IFACE"
#define SCRIPT_LOGICAL   "LOGICAL"
#define SCRIPT_ADDRFAM   "ADDRFAM"
#define SCRIPT_METHOD   "METHOD"
#define SCRIPT_MODE   "MODE"
#define SCRIPT_PHASE   "PHASE"
#define SCRIPT_VERBOSITY   "VERBOSITY"
#define SCRIPT_VERBOSITY_VALUE   "0"
#define SCRIPT_PATH   "PATH"
#define SCRIPT_PATH_VALUE
#define SCRIPT_IAP_ID   "ICD_CONNECTION_ID"
#define SCRIPT_IAP_TYPE   "ICD_CONNECTION_TYPE"
#define SCRIPT_PROXY_UNSET   "ICD_PROXY_UNSET"

Functions

static gboolean string_equal (const gchar *a, const gchar *b)
static GSList ** icd_script_get ()
gboolean icd_script_notify_pid (const pid_t pid, const gint exit_value)
static gboolean icd_script_timeout (gpointer data)
static gboolean icd_script_exec (const gchar *script, const gchar *iface, const gchar *mode, const gchar *phase, const gchar *iap_id, const gchar *iap_type, const gboolean remove_proxies, const struct icd_iap_env *env)
static gint icd_script_timeout_secs (void)
static pid_t icd_script_run (const gchar *script, const gchar *iface, const gchar *mode, const gchar *phase, const gchar *iap_id, const gchar *iap_type, gboolean remove_proxies, const struct icd_iap_env *env, icd_script_cb_fn cb, gpointer user_data)
void icd_script_cancel (const pid_t pid)
pid_t icd_script_pre_up (const gchar *iap_id, const gchar *iap_type, const struct icd_iap_env *env, icd_script_cb_fn cb, gpointer user_data)
pid_t icd_script_post_up (const gchar *iface, const gchar *iap_id, const gchar *iap_type, const struct icd_iap_env *env, icd_script_cb_fn cb, gpointer user_data)
pid_t icd_script_pre_down (const gchar *iface, const gchar *iap_id, const gchar *iap_type, gboolean remove_proxies, const struct icd_iap_env *env, icd_script_cb_fn cb, gpointer user_data)
pid_t icd_script_post_down (const gchar *iface, const gchar *iap_id, const gchar *iap_type, const struct icd_iap_env *env, icd_script_cb_fn cb, gpointer user_data)
void icd_script_add_env_vars (struct icd_iap *iap, gchar **env_vars)

Variables

static const gchar const * reserved_env_vars []

Detailed Description

Copyright (C) 2007 Nokia Corporation. All rights reserved.

Author:
patrik.flykt@nokia.com

Generated on Thu Mar 11 09:04:50 2010 for ICd2 by  doxygen 1.5.6