1/*
2    Copyright 2004, Broadcom Corporation
3    All Rights Reserved.
4
5    THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
6    KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
7    SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
8    FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
9
10    This file was automatically generated by xml2c.pl
11*/
12
13
14#include "upnp_dbg.h"
15#include "upnp_osl.h"
16#include "upnp.h"
17
18/*
19
20    Below you will find definitions for a number of Action structures.
21    The second argument to those structures is a pointer to a function
22    that implements that action.  Your job is to define all of the
23    actions so that none of them is left unimplemented.
24
25    As a convenience, all generated actions have been predefined to
26    invoke the action 'NotImplemented', an action that will print an
27    error message whenever it is invoked.  As you define functions for
28    each action, be sure to remove that function name from the list of
29    'NotImplemented' defines in the list below.
30
31    The following are pre-defined action functions that you can use:
32
33    NotImplemented - prints an error message on the console
34                     and returns 0 parameters to the caller.
35
36    DefaultAction  - Returns all 'out' parameters with values
37                     taken from the corresponding 'relatedStateVariable'.
38                     This function actually covers the behavior of
39                     a surprisingly large number of UPnP actions.
40
41*/
42
43#define GetEthernetLinkStatus NotImplemented
44
45#define VAR_EthernetLinkStatus		0
46
47static char *EthernetLinkStatus_allowedValueList[] = { "Up", "Down", "Unavailable", NULL };
48
49static VarTemplate StateVariables[] = {
50    { "EthernetLinkStatus", "", VAR_EVENTED|VAR_STRING|VAR_LIST,  (allowedValue) { EthernetLinkStatus_allowedValueList } },
51    { NULL }
52};
53
54
55static Action _GetEthernetLinkStatus = {
56    "GetEthernetLinkStatus", GetEthernetLinkStatus,
57   (Param []) {
58       {"NewEthernetLinkStatus", VAR_EthernetLinkStatus, VAR_OUT},
59       { 0 }
60    }
61};
62
63
64static PAction Actions[] = {
65    &_GetEthernetLinkStatus,
66    NULL
67};
68
69ServiceTemplate Template_WANEthernetLinkConfig = {
70    "WANEthernetLinkConfig:1",	/* name of service */
71    NULL,		/* PFSVCINIT service initialization function */
72    NULL,		/* PFGETVAR get service state variable function */
73    NULL,		/* SVCXML service XML generation function (not used) */
74    ARRAYSIZE(StateVariables)-1, /* number of state variables */
75    StateVariables,     /* pointer to list of state variables */
76    Actions,             /* pointer to list of actions */
77    0, /* count */
78    "urn:upnp-org:serviceId:WANEthernetLinkC", /* service id */
79    NULL		/* schema */
80};
81