#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) |
Initialize KCOM and register a handlers
Definition in file dpm-mgmt_kcom.c.
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 |
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
[in] | ctx | Newly created event context |
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().