counterd_main.c File Reference

Contains main entry point. More...

#include <string.h>
#include <isc/eventlib.h>
#include <jnx/aux_types.h>
#include <jnx/bits.h>
#include <jnx/mgmt_sock_pub.h>
#include <jnx/junos_init.h>
#include <jnx/junos_kcom.h>
#include "counterd_config.h"
#include "counterd_kcom.h"
#include "counterd_message.h"

Go to the source code of this file.

Defines

#define DNAME_COUNTERD   "counterd"

Functions

static int counterd_init (evContext ctx)
int main (int argc, char **argv)

Variables

const parse_menu_t master_menu []


Detailed Description

Contains main entry point.

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

Definition in file counterd_main.c.


Define Documentation

#define DNAME_COUNTERD   "counterd"

Constant string for the daemon name

Definition at line 79 of file counterd_main.c.

Referenced by main().


Function Documentation

static int counterd_init ( evContext  ctx  )  [static]

Callback for the first initialization of the RE-SDK Application

Parameters:
[in] ctx Newly created event context
Returns:
SUCCESS (0) upon successful completion

Definition at line 101 of file counterd_main.c.

References counterd_kcom_init(), and init_messages_ds().

Referenced by main().

int main ( int  argc,
char **  argv 
)

Intializes counterd's environment

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

Definition at line 125 of file counterd_main.c.

References counterd_config_read(), counterd_init(), DNAME_COUNTERD, and master_menu.


Variable Documentation

const parse_menu_t master_menu[]

main menu of commands

Definition at line 112 of file counterd_ui.c.

Referenced by main().


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:53 2010 for SDK Your Net Corporation Counter Example 1.0 by Doxygen 1.5.1