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 * $Id: etherlink.c,v 1.1.1.1 2008/10/15 03:31:34 james26_jang Exp $
11 */
12
13#include "upnp_dbg.h"
14#include "upnp_osl.h"
15#include "upnp.h"
16
17extern void soap_response(int, const char *, const char *,  pvar_entry_t, int);
18extern int DefaultAction(int, PService, PAction ac, pvar_entry_t, int);
19
20#define GetEthernetLinkStatus DefaultAction
21
22char *EthernetLinkStatus_allowedValueList[] = {  "Up", "Down", "Unavailable", 0 };
23
24static VarTemplate StateVariables[] = {
25    { "EthernetLinkStatus", "", VAR_EVENTED|VAR_STRING|VAR_LIST,  (allowedValue) { EthernetLinkStatus_allowedValueList } },
26    { 0 }
27};
28
29#define VAR_EthernetLinkStatus	0
30
31static Action _GetEthernetLinkStatus = {
32    "GetEthernetLinkStatus", GetEthernetLinkStatus,
33        {
34            {"NewEthernetLinkStatus", VAR_EthernetLinkStatus, VAR_OUT},
35            { 0 }
36        }
37};
38
39static PAction Actions[] = {
40    &_GetEthernetLinkStatus,
41    NULL
42};
43
44ServiceTemplate Template_WANEthernetLinkConfig = {
45    "WANEthernetLinkConfig:1",
46    NULL,
47    NULL,
48    NULL,   /* SVCXML */
49    ARRAYSIZE(StateVariables)-1, StateVariables,
50    Actions
51};
52
53
54
55
56
57