helloworldd_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 "helloworldd_config.h"

Go to the source code of this file.

Defines

#define DNAME_HELLOWORLDD   "helloworldd"

Functions

static int helloworld_init (evContext ctx __unused)
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 helloworldd_main.c.


Define Documentation

#define DNAME_HELLOWORLDD   "helloworldd"

Constant string for the daemon name

Definition at line 56 of file helloworldd_main.c.

Referenced by main().


Function Documentation

static int helloworld_init ( evContext ctx  __unused  )  [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 78 of file helloworldd_main.c.

References init_messages_ds().

Referenced by main().

int main ( int  argc,
char **  argv 
)

Intializes helloworldd'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 102 of file helloworldd_main.c.

References DNAME_HELLOWORLDD, helloworld_config_read(), helloworld_init(), and master_menu.


Variable Documentation

const parse_menu_t master_menu[]

main menu of commands

Definition at line 115 of file helloworldd_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:59 2010 for SDK Your Net Corporation Helloworld Example 1.0 by Doxygen 1.5.1