equilibrium2-mgmt_main.c File Reference

Contains main entry point. More...

#include <sync/equilibrium2.h>
#include "equilibrium2-mgmt.h"
#include <stdlib.h>
#include <jnx/trace.h>
#include <jnx/junos_trace.h>
#include <jnx/junos_init.h>
#include <jnx/pmon.h>

Go to the source code of this file.

Functions

static void main_exit (void)
 Close and exit.
static void eq2_sigterm (int signo UNUSED)
 Shutdown app upon a SIGTERM.
static int main_init (evContext ctx)
 Callback for the first initialization of the RE-SDK application.
int main (int argc, char **argv)
 Intializes equilibrium2-mgmt's environment.

Variables

const parse_menu_t master_menu []
static junos_pmon_context_t pmon


Detailed Description

Contains main entry point.

Contains the main entry point and registers the application as a JUNOS daemon

Definition in file equilibrium2-mgmt_main.c.


Function Documentation

static void eq2_sigterm ( int signo  UNUSED  )  [static]

Shutdown app upon a SIGTERM.

Parameters:
[in] signo Always SIGTERM (ignored)

Definition at line 265 of file equilibrium2-mgmt_main.c.

References main_exit().

Referenced by main_init().

int main ( int  argc,
char **  argv 
)

Intializes equilibrium2-mgmt's environment.

Parameters:
[in] argc Number of command line arguments
[in] argv String array of command line arguments
Returns:
0 on successful exit of the application (shouldn't happen), non-zero on failure

Definition at line 361 of file equilibrium2-mgmt_main.c.

References DNAME_EQUILIBRIUM2_MGMT, eq2_config_read(), main_init(), and master_menu.

static int main_init ( evContext  ctx  )  [static]

Callback for the first initialization of the RE-SDK application.

Parameters:
[in] ctx Newly created event context
Returns:
0 on success, -1 on failure

Definition at line 281 of file equilibrium2-mgmt_main.c.

References config_clear(), config_init(), EQ2_LOG, eq2_origin_id, eq2_provider_id, eq2_sigterm(), EQ2_TRACE, kcom_close(), kcom_init(), pmon, PMON_HB_INTERVAL, and server_open().

Referenced by main().


Variable Documentation

const parse_menu_t master_menu[]

main menu of commands

Definition at line 178 of file equilibrium2-mgmt_ui.c.

Referenced by main().

junos_pmon_context_t pmon [static]

health monitoring handle

Definition at line 236 of file equilibrium2-mgmt_main.c.

Referenced by main_exit(), and main_init().


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:58 2010 for SDK Your Net Corporation Equilibrium II: equilibrium2-mgmt 1.0 by Doxygen 1.5.1