33 #include <nsIClassInfoImpl.h>
34 #include <nsIProgrammingLanguage.h>
43 static PRLogModuleInfo* gBaseMediacore = nsnull;
44 #define TRACE(args) PR_LOG(gBaseMediacore, PR_LOG_DEBUG, args)
45 #define LOG(args) PR_LOG(gBaseMediacore, PR_LOG_WARN, args)
62 sbBaseMediacore::sbBaseMediacore()
65 MOZ_COUNT_CTOR(sbBaseMediacore);
69 gBaseMediacore = PR_NewLogModule(
"sbBaseMediacore");
72 TRACE((
"sbBaseMediacore[0x%x] - Created",
this));
77 TRACE((
"sbBaseMediacore[0x%x] - Destroyed",
this));
81 nsAutoMonitor::DestroyMonitor(
mMonitor);
88 TRACE((
"sbBaseMediacore[0x%x] - InitBaseMediacore",
this));
90 mMonitor = nsAutoMonitor::NewMonitor(
"sbBaseMediacore::mMonitor");
91 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_OUT_OF_MEMORY);
99 TRACE((
"sbBaseMediacore[0x%x] - SetInstanceName",
this));
100 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
111 TRACE((
"sbBaseMediacore[0x%x] - SetCapabilities",
this));
112 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
113 NS_ENSURE_ARG_POINTER(aCapabilities);
124 TRACE((
"sbBaseMediacore[0x%x] - SetStatus",
this));
125 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
126 NS_ENSURE_ARG_POINTER(aStatus);
135 sbBaseMediacore::GetInstanceName(nsAString & aInstanceName)
137 TRACE((
"sbBaseMediacore[0x%x] - GetInstanceName",
this));
138 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
149 TRACE((
"sbBaseMediacore[0x%x] - GetCapabilities",
this));
150 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
151 NS_ENSURE_ARG_POINTER(aCapabilities);
154 NS_ENSURE_SUCCESS(rv, rv);
165 TRACE((
"sbBaseMediacore[0x%x] - GetLastStatusEvent",
this));
166 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
167 NS_ENSURE_ARG_POINTER(aStatus);
170 NS_IF_ADDREF(*aStatus =
mStatus);
178 TRACE((
"sbBaseMediacore[0x%x] - GetSequencer",
this));
179 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
180 NS_ENSURE_ARG_POINTER(aSequencer);
191 TRACE((
"sbBaseMediacore[0x%x] - GetSequencer",
this));
192 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
193 NS_ENSURE_ARG_POINTER(aSequencer);
196 NS_ENSURE_SUCCESS(rv, rv);
205 sbBaseMediacore::Shutdown()
207 TRACE((
"sbBaseMediacore[0x%x] - Shutdown",
this));
208 NS_ENSURE_TRUE(
mMonitor, NS_ERROR_NOT_INITIALIZED);
224 return NS_ERROR_NOT_IMPLEMENTED;
239 return NS_ERROR_NOT_IMPLEMENTED;
275 return NS_ERROR_NOT_IMPLEMENTED;
NS_IMPL_CI_INTERFACE_GETTER2(sbDataRemoteWrapper, sbIDataRemote, nsIClassInfo) sbDataRemoteWrapper