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: wanpotslinkconfig.c,v 1.1.1.1 2008/10/15 03:31:35 james26_jang Exp $
11 */
12
13#include "upnp_dbg.h"
14#include "upnp_osl.h"
15#include "upnp.h"
16
17#define GetDataCompression		NotImplemented
18#define SetISPInfo			NotImplemented
19#define GetISPInfo			NotImplemented
20#define GetDataProtocol			NotImplemented
21#define GetCallRetryInfo		NotImplemented
22#define GetPlusVTRCommandSupported	NotImplemented
23#define SetCallRetryInfo		NotImplemented
24#define GetDataModulationSupported	NotImplemented
25#define GetFclass			NotImplemented
26
27static VarTemplate StateVariables[] = {
28    { "PlusVTRCommandSupported", "", VAR_BOOL },
29    { "DataModulationSupported", "", VAR_STRING },
30    { "Fclass", "", VAR_STRING },
31    { "NumberOfRetries", "", VAR_LONG },
32    { "LinkType", "", VAR_STRING },
33    { "DataCompression", "", VAR_STRING },
34    { "ISPPhoneNumber", "", VAR_EVENTED|VAR_STRING },
35    { "DataProtocol", "", VAR_STRING },
36    { "ISPInfo", "", VAR_STRING },
37    { "DelayBetweenRetries", "", VAR_LONG },
38    { 0 }
39};
40
41#define VAR_PlusVTRCommandSupported	0
42#define VAR_DataModulationSupported	1
43#define VAR_Fclass	2
44#define VAR_NumberOfRetries	3
45#define VAR_LinkType	4
46#define VAR_DataCompression	5
47#define VAR_ISPPhoneNumber	6
48#define VAR_DataProtocol	7
49#define VAR_ISPInfo	8
50#define VAR_DelayBetweenRetries	9
51
52
53static Action _GetDataCompression = {
54    "GetDataCompression", GetDataCompression,
55        {
56            {"NewDataCompression", VAR_DataCompression, VAR_OUT},
57            { 0 }
58        }
59};
60
61static Action _SetISPInfo = {
62    "SetISPInfo", SetISPInfo,
63        {
64            {"NewISPPhoneNumber", VAR_ISPPhoneNumber, VAR_IN},
65            {"NewISPInfo", VAR_ISPInfo, VAR_IN},
66            {"NewLinkType", VAR_LinkType, VAR_IN},
67            { 0 }
68        }
69};
70
71static Action _GetISPInfo = {
72    "GetISPInfo", GetISPInfo,
73        {
74            {"NewISPPhoneNumber", VAR_ISPPhoneNumber, VAR_OUT},
75            {"NewISPInfo", VAR_ISPInfo, VAR_OUT},
76            {"NewLinkType", VAR_LinkType, VAR_OUT},
77            { 0 }
78        }
79};
80
81static Action _GetDataProtocol = {
82    "GetDataProtocol", GetDataProtocol,
83        {
84            {"NewDataProtocol", VAR_DataProtocol, VAR_OUT},
85            { 0 }
86        }
87};
88
89static Action _GetCallRetryInfo = {
90    "GetCallRetryInfo", GetCallRetryInfo,
91        {
92            {"NewNumberOfRetries", VAR_NumberOfRetries, VAR_OUT},
93            {"NewDelayBetweenRetries", VAR_DelayBetweenRetries, VAR_OUT},
94            { 0 }
95        }
96};
97
98static Action _GetPlusVTRCommandSupported = {
99    "GetPlusVTRCommandSupported", GetPlusVTRCommandSupported,
100        {
101            {"NewPlusVTRCommandSupported", VAR_PlusVTRCommandSupported, VAR_OUT},
102            { 0 }
103        }
104};
105
106static Action _SetCallRetryInfo = {
107    "SetCallRetryInfo", SetCallRetryInfo,
108        {
109            {"NewNumberOfRetries", VAR_NumberOfRetries, VAR_IN},
110            {"NewDelayBetweenRetries", VAR_DelayBetweenRetries, VAR_IN},
111            { 0 }
112        }
113};
114
115static Action _GetDataModulationSupported = {
116    "GetDataModulationSupported", GetDataModulationSupported,
117        {
118            {"NewDataModulationSupported", VAR_DataModulationSupported, VAR_OUT},
119            { 0 }
120        }
121};
122
123static Action _GetFclass = {
124    "GetFclass", GetFclass,
125        {
126            {"NewFclass", VAR_Fclass, VAR_OUT},
127            { 0 }
128        }
129};
130
131static PAction Actions[] = {
132    &_GetDataCompression,
133    &_SetISPInfo,
134    &_GetISPInfo,
135    &_GetDataProtocol,
136    &_GetCallRetryInfo,
137    &_GetPlusVTRCommandSupported,
138    &_SetCallRetryInfo,
139    &_GetDataModulationSupported,
140    &_GetFclass,
141    NULL
142};
143
144
145ServiceTemplate Template_WANPOTSLinkConfig = {
146    "WANPOTSLinkConfig:1",
147    NULL,
148    NULL,
149    NULL,  /* SVCXML */
150    ARRAYSIZE(StateVariables)-1, StateVariables,
151    Actions
152};
153
154
155
156