00001 #ifndef CG_UPNP_AV_CCONNECTIONINFO_H 00002 #define CG_UPNP_AV_CCONNECTIONINFO_H 00003 00004 #include <cybergarage/typedef.h> 00005 00006 /******************************************************* 00007 * Connection direction constants 00008 *******************************************************/ 00009 #define CG_UPNP_CONNECTION_INFO_DIRECTION_INPUT "Input" 00010 #define CG_UPNP_CONNECTION_INFO_DIRECTION_OUTPUT "Output" 00011 00012 /******************************************************* 00013 * Connection status constants 00014 *******************************************************/ 00015 #define CG_UPNP_CONNECTION_INFO_STATUS_OK "OK" 00016 #define CG_UPNP_CONNECTION_INFO_STATUS_FORMAT_MISMATCH "ContentFormatMismatch" 00017 #define CG_UPNP_CONNECTION_INFO_STATUS_NO_BANDWIDTH "InsufficientBandwidth" 00018 #define CG_UPNP_CONNECTION_INFO_STATUS_UNRELIABLE_CHANNEL "UnreliableChannel" 00019 #define CG_UPNP_CONNECTION_INFO_STATUS_UNKNOWN "Unknown" 00020 00029 typedef struct _CgConnectionInfo 00030 { 00031 BOOL headFlag; 00032 CgList* prev; 00033 CgList* next; 00034 00036 int connectionId; 00038 int peerConnectionId; 00040 int renderingControlId; 00042 int avTransportId; 00043 00047 CgString protocolInfo; 00051 CgString peerConnectionManager; 00052 00054 CgString direction; 00056 CgString status; 00057 00058 } CgConnectionInfo, CgConnectionInfoList; 00059 00060 /************************************************************** 00061 * Functions 00062 **************************************************************/ 00063 00067 CgConnectionInfo* cg_upnp_av_connection_info_new(); 00068 00074 void cg_upnp_av_connection_info_delete(CgConnectionInfo* connectionInfo); 00075 00082 void cg_upnp_av_connection_info_set_id(CgConnectionInfo* connectionInfo, int id); 00083 00089 int cg_upnp_av_connection_info_get_id(CgConnectionInfo* connectionInfo); 00090 00098 void cg_upnp_av_connection_info_set_peer_id(CgConnectionInfo* connectionInfo, int peerId); 00099 00106 int cg_upnp_av_connection_info_get_peer_id(CgConnectionInfo* connectionInfo); 00107 00114 void cg_upnp_av_connection_info_set_rcs_id(CgConnectionInfo* connectionInfo, int rcsId); 00115 00121 int cg_upnp_av_connection_info_get_rcs_id(CgConnectionInfo* connectionInfo); 00122 00129 void cg_upnp_av_connection_info_set_avt_id(CgConnectionInfo* connectionInfo, int avtId); 00130 00136 int cg_upnp_av_connection_info_get_avt_id(CgConnectionInfo* connectionInfo); 00137 00141 void cg_upnp_av_connection_info_(CgConnectionInfo* connectionInfo); 00142 00146 void cg_upnp_av_connection_info_(CgConnectionInfo* connectionInfo); 00147 00148 #endif