junos_kcom_mpsdk_cfg.h File Reference

Definitions for MP-SDK config blobs and the functions used to work with them. More...


Data Structures

struct  junos_kcom_mpsdk_cfg_req_s
 junos_kcom_mpsdk_cfg_req_t is a structure used to register, deregister. More...

Defines

#define JUNOS_KCOM_MPSDK_CFG_FREE(_cfg)
 This is for plugin control handler to free the Service SDK application configuration blob after processing it.

Typedefs

typedef int(* junos_kcom_mpsdk_msg_handler_ptr )(junos_kcom_gencfg_t *)
 junos_kcom_mpsdk_msg_handler_ptr is a user-supplied function called to give async notifications to the users.
typedef junos_kcom_mpsdk_cfg_req_s junos_kcom_mpsdk_cfg_req_t
 junos_kcom_mpsdk_cfg_req_t is a structure used to register, deregister.

Enumerations

enum  junos_kcom_mpsdk_cfg_req_opcode_t { JUNOS_KCOM_MPSDK_CFG_REG, JUNOS_KCOM_MPSDK_CFG_DEREG, JUNOS_KCOM_MPSDK_CFG_GET_ALL }
 junos_kcom_mpsdk_cfg_opcode_t is an enum defining the type of operations which can be done on the MP-SDK config blobs. More...

Functions

int junos_kcom_mpsdk_cfg_req (junos_kcom_mpsdk_cfg_req_t *req)
 API to request all possible operations for the MP-SDK config blobs.


Detailed Description

Definitions for MP-SDK config blobs and the functions used to work with them.

The data structures and apis defined in this header file will be only available at MS PIC. The purpose is to demux the gencfg messages from PFEMAN to different applications.


Define Documentation

#define JUNOS_KCOM_MPSDK_CFG_FREE _cfg   ) 
 

Value:

do {                            \
        free(_cfg->get_p);          \
        free(_cfg);                 \
    } while (0)
This is for plugin control handler to free the Service SDK application configuration blob after processing it.


Typedef Documentation

typedef int(* junos_kcom_mpsdk_msg_handler_ptr)(junos_kcom_gencfg_t *)
 

junos_kcom_mpsdk_msg_handler_ptr is a user-supplied function called to give async notifications to the users.

The notifications can be for adding, deletion, and modification of the registered MP-SDK config blob.


Enumeration Type Documentation

enum junos_kcom_mpsdk_cfg_req_opcode_t
 

junos_kcom_mpsdk_cfg_opcode_t is an enum defining the type of operations which can be done on the MP-SDK config blobs.

Use these values when calling the API junos_kcom_mpsdk_cfg_req().

Enumerator:
JUNOS_KCOM_MPSDK_CFG_REG  Register the handler for MP-SDK config blob.
JUNOS_KCOM_MPSDK_CFG_DEREG  Deregister the handler for MP-SDK config blob.
JUNOS_KCOM_MPSDK_CFG_GET_ALL  Get all the blobs for a particular application.


Function Documentation

int junos_kcom_mpsdk_cfg_req junos_kcom_mpsdk_cfg_req_t req  ) 
 

API to request all possible operations for the MP-SDK config blobs.

The application can register, degregister an async notification routine; it also can request to get all the existing mpsdk config blobs.

Parameters:
[in] req Pointer to junos_kcom_pub_blob_req_t structure.
Returns:
JUNOS_KCOM_OK on success; KCOM_LIB_ERR on failure


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:24:36 2010 for libjunos-sdk by Doxygen 1.4.5