icd/icd_policy_api.c File Reference

#include <gconf/gconf.h>
#include "icd_policy_api.h"
#include "policy_api.h"
#include "icd_plugin.h"
#include "icd_log.h"
#include "icd_request.h"
#include "icd_iap.h"
#include "icd_scan.h"
#include "network_api.h"
#include "icd_type_modules.h"
#include "icd_network_priority.h"
#include "icd_srv_provider.h"

Classes

struct  icd_policy_api_async_data
struct  icd_policy_api_request_data
struct  icd_policy_scan_data

Defines

#define ICD_POLICY_API_PREFIX   "libicd_policy_"
#define ICD_POLICY_INIT   "icd_policy_init"

Typedefs

typedef gboolean(* icd_policy_api_async_call_fn )(struct icd_policy_module *module, struct icd_policy_request *request, struct icd_policy_api_async_data *async_data)

Functions

static void icd_policy_api_add_iap (struct icd_policy_request *req, gchar *service_type, guint service_attrs, gchar *service_id, gchar *network_type, guint network_attrs, gchar *network_id, gint network_priority)
static GSList * icd_policy_api_existing_requests_get (struct icd_request *new_request)
static void icd_policy_api_merge_requests (struct icd_policy_request *request_to_merge, struct icd_policy_request *existing_request)
static void icd_policy_api_make_request (guint policy_attrs, gchar *service_type, guint service_attrs, gchar *service_id, gchar *network_type, guint network_attrs, gchar *network_id)
static void icd_policy_api_async_data_free (struct icd_policy_api_async_data *data)
static gboolean icd_policy_api_run_async_next (struct icd_policy_request *req, struct icd_policy_api_async_data *async_data)
static gboolean icd_policy_api_run_async (struct icd_policy_request *req, icd_policy_api_async_call_fn call_policy, gpointer user_data)
static void icd_policy_api_request_cb (enum icd_policy_status status, struct icd_policy_request *req, gpointer policy_token)
static gboolean icd_policy_api_request_call (struct icd_policy_module *module, struct icd_policy_request *request, struct icd_policy_api_async_data *async_data)
void icd_policy_api_new_request (struct icd_policy_request *req, icd_policy_api_request_cb_fn cb, gpointer user_data)
static enum icd_policy_status icd_policy_api_run (icd_policy_api_run_module_fn policy_fn, struct icd_policy_request *request, gpointer user_data)
static enum icd_policy_status icd_policy_api_request_cancel_iter (struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)
void icd_policy_api_request_cancel (struct icd_policy_request *req)
static gboolean icd_policy_api_existing_conn_foreach (struct icd_iap *iap, gpointer user_data)
static GSList * icd_policy_api_existing_conn_get (void)
static enum icd_policy_status icd_policy_api_iap_connect_iter (struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)
enum icd_policy_status icd_policy_api_iap_connect (struct icd_policy_request *connection)
static enum icd_policy_status icd_policy_api_iap_restart_iter (struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)
enum icd_policy_status icd_policy_api_iap_restart (struct icd_policy_request *connection, guint restart_count)
static enum icd_policy_status icd_policy_api_iap_succeeded_iter (struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)
void icd_policy_api_iap_succeeded (struct icd_policy_request *connection)
static enum icd_policy_status icd_policy_api_iap_disconnect_iter (struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)
enum icd_policy_status icd_policy_api_iap_disconnect (struct icd_policy_request *connection, gint refcount)
static enum icd_policy_status icd_policy_api_iap_disconnected_iter (struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)
void icd_policy_api_iap_disconnected (struct icd_policy_request *connection, const gchar *err_str)
static enum icd_policy_status icd_policy_api_scan_stop_status_iter (struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)
void icd_policy_api_scan_stop_status (const gchar *network_type)
static enum icd_policy_status icd_policy_api_scan_start_status_iter (struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)
void icd_policy_api_scan_start_status (const gchar *network_type)
static GSList ** icd_policy_api_scan_list_get (void)
static struct
icd_policy_scan_data
icd_policy_api_scan_find (icd_policy_scan_cb_fn cb, gpointer user_data)
static void icd_policy_api_scan_result (enum icd_scan_status status, const struct icd_scan_srv_provider *srv_provider, const struct icd_scan_cache *cache_entry, gpointer user_data)
static void icd_policy_api_scan_start (const gchar *type, const guint scope, icd_policy_scan_cb_fn cb, gpointer user_data)
static void icd_policy_api_scan_stop (icd_policy_scan_cb_fn cb, gpointer user_data)
static void icd_policy_api_disconnect_iap (struct icd_policy_request *network)
static gboolean icd_policy_api_init_cb (const gchar *module_name, void *handle, gpointer init_function, gpointer data)
gboolean icd_policy_api_load_modules (struct icd_context *icd_ctx)
void icd_policy_api_unload_modules (struct icd_context *icd_ctx)

Variables

const gchar const * icd_policy_api_state []
enum icd_policy_status(* icd_policy_api_run_module_fn )(struct icd_policy_module *module, struct icd_policy_request *request, gpointer user_data)

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