counterd_ui.c File Reference

Relating to the user interface (commands) of counterd. 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 "counterd_config.h"
#include "counterd_message.h"

Go to the source code of this file.

Functions

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

Variables

static const parse_menu_t show_sync_counter_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 counterd.

Contains callback functions that get executed by commands on the router

Definition in file counterd_ui.c.


Function Documentation

static int32_t counterd_show_messages ( 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

Definition at line 53 of file counterd_ui.c.

References get_message(), and get_times_viewed().


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 112 of file counterd_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 104 of file counterd_ui.c.

const parse_menu_t show_sync_counter_menu[] [static]

Initial value:

 {
    { "message", NULL, 0, NULL, counterd_show_messages },
    { NULL, NULL, 0, NULL, NULL }
}
show sync counter ... commands

Definition at line 88 of file counterd_ui.c.

const parse_menu_t show_sync_menu[] [static]

Initial value:

 {
    { "counter", NULL, 0, show_sync_counter_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}
show sync ... commands

Definition at line 96 of file counterd_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:53 2010 for SDK Your Net Corporation Counter Example 1.0 by Doxygen 1.5.1