Lines Matching refs:mSource
183 AMediaDataSource *mSource = new AMediaDataSource(); in AMediaDataSource_new() local
184 mSource->userdata = NULL; in AMediaDataSource_new()
185 mSource->readAt = NULL; in AMediaDataSource_new()
186 mSource->getSize = NULL; in AMediaDataSource_new()
187 mSource->close = NULL; in AMediaDataSource_new()
188 return mSource; in AMediaDataSource_new()
218 void AMediaDataSource_delete(AMediaDataSource *mSource) { in AMediaDataSource_delete() argument
220 if (mSource != NULL) { in AMediaDataSource_delete()
221 delete mSource; in AMediaDataSource_delete()
226 void AMediaDataSource_setUserdata(AMediaDataSource *mSource, void *userdata) { in AMediaDataSource_setUserdata() argument
227 mSource->userdata = userdata; in AMediaDataSource_setUserdata()
231 void AMediaDataSource_setReadAt(AMediaDataSource *mSource, AMediaDataSourceReadAt readAt) { in AMediaDataSource_setReadAt() argument
232 mSource->readAt = readAt; in AMediaDataSource_setReadAt()
236 void AMediaDataSource_setGetSize(AMediaDataSource *mSource, AMediaDataSourceGetSize getSize) { in AMediaDataSource_setGetSize() argument
237 mSource->getSize = getSize; in AMediaDataSource_setGetSize()
241 void AMediaDataSource_setClose(AMediaDataSource *mSource, AMediaDataSourceClose close) { in AMediaDataSource_setClose() argument
242 mSource->close = close; in AMediaDataSource_setClose()
246 void AMediaDataSource_close(AMediaDataSource *mSource) { in AMediaDataSource_close() argument
247 return mSource->close(mSource->userdata); in AMediaDataSource_close()
251 void AMediaDataSource_setGetAvailableSize(AMediaDataSource *mSource, in AMediaDataSource_setGetAvailableSize() argument
253 mSource->getAvailableSize = getAvailableSize; in AMediaDataSource_setGetAvailableSize()