monitube-mgmt_kcom.c File Reference

Init kcom and register handler. More...

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

Go to the source code of this file.


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


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 monitube-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

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

Definition at line 53 of file monitube-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

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

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

References ifd_down_async_handler(), and LOG.

Referenced by monitube_init().

void kcom_shutdown ( void   ) 

Shutdown KCOM library and register handlers for asynchronous KCOM messages

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

Referenced by monitube_init(), and monitube_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:27:03 2010 for SDK Your Net Corporation Monitube IPTV Monitoring Example: monitube-mgmt 1.0 by Doxygen 1.5.1