dpm-mgmt_kcom.c File Reference

Init kcom and register handler. More...

#include <sync/common.h>
#include <jnx/provider_info.h>
#include "dpm-mgmt_kcom.h"
#include "dpm-mgmt_config.h"
#include "dpm-mgmt_conn.h"
#include "dpm-mgmt_logging.h"

Go to the source code of this file.

Defines

#define MSP_IFD_NAME_PATTERN   "ms-"
 common part of MS PIC interface names

Functions

static int ifd_down_async_handler (kcom_ifdev_t *msg, void *user_info __unused)
int kcom_init (evContext ctx)
void kcom_shutdown (void)


Detailed Description

Init kcom and register handler.

Initialize KCOM and register a handlers

Definition in file dpm-mgmt_kcom.c.


Function Documentation

static int ifd_down_async_handler ( kcom_ifdev_t *  msg,
void *user_info  __unused 
) [static]

Gets called for all ifds. Watch for MS PIC which we are connected to going down

Parameters:
[in] msg The ifd we want to know about
[in] user_info User info that was registered to be passed to this callback
Returns:
0 upon successful completion, otherwise -1

Definition at line 53 of file dpm-mgmt_kcom.c.

References MSP_IFD_NAME_PATTERN, and mspic_offline().

Referenced by kcom_init().

int kcom_init ( evContext  ctx  ) 

Init KCOM library and register handlers for asynchronous KCOM messages

Parameters:
[in] ctx Newly created event context
Returns:
KCOM_OK (0) on success, or -1 on error.

Definition at line 86 of file dpm-mgmt_kcom.c.

References ifd_down_async_handler(), and LOG.

Referenced by dpm_init().

void kcom_shutdown ( void   ) 

Shutdown KCOM library and register handlers for asynchronous KCOM messages

Definition at line 115 of file dpm-mgmt_kcom.c.

Referenced by dpm_init(), and dpm_shutdown().


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:26:55 2010 for SDK Your Net Corporation Dynamic Policy Manager Example: dpm-mgmt 1.0 by Doxygen 1.5.1