00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef CG_UPNP_AV_CCMSCONTROLPOINT_H
00010 #define CG_UPNP_AV_CCMSCONTROLPOINT_H
00011
00012 #include <cybergarage/connectionmanager/cconnectionmanager.h>
00013 #include <cybergarage/connectionmanager/ccmsactionarguments.h>
00014 #include <cybergarage/upnp/cdevice.h>
00015
00016
00017
00018
00019
00040 int cg_upnp_av_cms_control_invokeaction(CgUpnpDevice* upnpDevice,
00041 char* actionName,
00042 char** errorString,
00043 ...);
00044
00045
00046
00047
00048
00059 #define cg_upnp_av_cms_control_getprotocolinfo(upnpDevice, \
00060 errorString, \
00061 source, \
00062 sink) \
00063 \
00064 cg_upnp_av_cms_control_invokeaction(upnpDevice, \
00065 CG_UPNP_CMS_ACTION_GETPROTOCOLINFO, \
00066 errorString, \
00067 CG_UPNP_CMS_ARG_SOURCE, \
00068 source, \
00069 CG_UPNP_CMS_ARG_SINK, \
00070 sink, \
00071 NULL)
00072
00079 #define cg_upnp_av_cms_control_getcurrentconnectionids(upnpDevice, \
00080 errorString, \
00081 connectionIDs) \
00082 \
00083 cg_upnp_av_cms_control_invokeaction(upnpDevice, \
00084 CG_UPNP_CMS_ACTION_GETCURRENTCONNECTIONIDS, \
00085 errorString, \
00086 CG_UPNP_CMS_ARG_CONNECTIONIDS, \
00087 connectionIDs, \
00088 NULL)
00089
00112 #define cg_upnp_av_cms_control_getcurrentconnectioninfo(upnpDevice, \
00113 errorString, \
00114 connectionID, \
00115 rcsID, \
00116 avtransportID, \
00117 protocolInfo, \
00118 peerConnectionManager, \
00119 peerConnectionID, \
00120 direction, \
00121 status) \
00122 \
00123 cg_upnp_av_cms_control_invokeaction(upnpDevice, \
00124 CG_UPNP_CMS_ACTION_GETCURRENTCONNECTIONINFO, \
00125 errorString, \
00126 CG_UPNP_CMS_ARG_CONNECTIONID, \
00127 connectionID, \
00128 CG_UPNP_CMS_ARG_RCSID, \
00129 rcsID, \
00130 CG_UPNP_CMS_ARG_AVTRANSPORTID, \
00131 avtransportID, \
00132 CG_UPNP_CMS_ARG_PROTOCOLINFO, \
00133 protocolInfo, \
00134 CG_UPNP_CMS_ARG_PEERCONNECTIONMANAGER, \
00135 peerConnectionManager, \
00136 CG_UPNP_CMS_ARG_PEERCONNECTIONID, \
00137 peerConnectionID, \
00138 CG_UPNP_CMS_ARG_DIRECTION, \
00139 direction, \
00140 CG_UPNP_CMS_ARG_STATUS, \
00141 status, \
00142 NULL)
00143
00144
00145
00146
00147
00170 #define cg_upnp_av_cms_control_prepareforconnection(upnpDevice, \
00171 errorString, \
00172 remoteProtocolInfo, \
00173 peerConnectionManager, \
00174 peerConnectionID, \
00175 direction, \
00176 connectionID, \
00177 avtransportID, \
00178 rcsID) \
00179 \
00180 cg_upnp_av_cms_control_invokeaction(upnpDevice, \
00181 CG_UPNP_CMS_ACTION_PREPAREFORCONNECTION, \
00182 errorString, \
00183 CG_UPNP_CMS_ARG_REMOTEPROTOCOLINFO, \
00184 remoteProtocolInfo, \
00185 CG_UPNP_CMS_ARG_PEERCONNECTIONMANAGER, \
00186 peerConnectionManager, \
00187 CG_UPNP_CMS_ARG_DIRECTION, \
00188 direction, \
00189 CG_UPNP_CMS_ARG_CONNECTIONID, \
00190 connectionID, \
00191 CG_UPNP_CMS_ARG_AVTRANSPORTID, \
00192 avtransportID, \
00193 CG_UPNP_CMS_ARG_RCSID, \
00194 rcsID, \
00195 NULL)
00196
00204 #define cg_upnp_av_cms_control_connectioncomplete(upnpDevice, \
00205 errorString, \
00206 connectionID) \
00207 \
00208 cg_upnp_av_cms_control_invokeaction(upnpDevice, \
00209 CG_UPNP_CMS_ACTION_CONNECTIONCOMPLETE, \
00210 errorString, \
00211 CG_UPNP_CMS_ARG_CONNECTIONID, \
00212 connectionID, \
00213 NULL)
00214
00215 #endif