helloworldd_ui.c File Reference

Relating to the user interface (commands) of helloworldd. More...

#include <jnx/mgmt_sock_pub.h>
#include <jnx/ms_parse.h>
#include <junoscript/xmlrpc.h>
#include <junoscript/xmllib_pub.h>
#include <ddl/defs.h>
#include "helloworldd_config.h"

Go to the source code of this file.

Functions

static int32_t helloworld_show_message (mgmt_sock_t *msp, parse_status_t *csb __unused, char *unparsed __unused)

Variables

static const parse_menu_t show_sync_helloworld_menu []
static const parse_menu_t show_sync_menu []
static const parse_menu_t show_menu []
const parse_menu_t master_menu []


Detailed Description

Relating to the user interface (commands) of helloworldd.

Contains callback functions that get executed by commands on the router

Definition in file helloworldd_ui.c.


Function Documentation

static int32_t helloworld_show_message ( mgmt_sock_t *  msp,
parse_status_t *csb  __unused,
char *unparsed  __unused 
) [static]

Displays the configured message

Parameters:
[in] msp management socket pointer
[in] csb parsed info status (contains subcodes/arguments)
[in] unparsed unparsed command string
Returns:
0 if no error; 1 to terminate connection

Definition at line 53 of file helloworldd_ui.c.

References first_message(), helloworld_data_s::message, and next_message().


Variable Documentation

const parse_menu_t master_menu[]

Initial value:

 {
    { "show", NULL, 0, show_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}
main menu of commands

Definition at line 115 of file helloworldd_ui.c.

Referenced by main().

const parse_menu_t show_menu[] [static]

Initial value:

 {
    { "sync", NULL, 0, show_sync_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}
show ... commands

Definition at line 107 of file helloworldd_ui.c.

const parse_menu_t show_sync_helloworld_menu[] [static]

Initial value:

 {
    { "message", NULL, 0, NULL, helloworld_show_message },
    { NULL, NULL, 0, NULL, NULL }
}
show sync helloworld ... commands

Definition at line 91 of file helloworldd_ui.c.

const parse_menu_t show_sync_menu[] [static]

Initial value:

 {
    { "helloworld", NULL, 0, show_sync_helloworld_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}
show sync ... commands

Definition at line 99 of file helloworldd_ui.c.


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