M4AD_Null.h revision 7c9d8018755adf1857571125ba1b3598c96ea506
1/*
2 * Copyright (C) 2004-2011 NXP Software
3 * Copyright (C) 2011 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/**
19*************************************************************************
20 * @file    M4AD_Null.h
21 * @brief    Implementation of the decoder public interface that do nothing
22 * @note    This file defines the getInterface function.
23*************************************************************************
24*/
25#ifndef __M4AD_NULL_H__
26#define __M4AD_NULL_H__
27
28#include "M4AD_Common.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34
35/**
36 ************************************************************************
37 * @brief Retrieves the interface implemented by the decoder
38 * @param pDecoderType        : pointer on an M4AD_Type (allocated by the caller)
39 *                              that will be filled with the decoder type supported by this decoder
40 * @param pDecoderInterface   : address of a pointer that will be set to the interface implemented
41 *                              by this decoder. The interface is a structure allocated by the
42 *                              function and must be un-allocated by the caller.
43 *
44 * @return : M4NO_ERROR  if OK
45 *           M4ERR_ALLOC if allocation failed
46 ************************************************************************
47*/
48M4OSA_ERR M4AD_NULL_getInterface( M4AD_Type *pDecoderType, M4AD_Interface **pDecoderInterface);
49
50#ifdef __cplusplus
51}
52#endif /* __cplusplus */
53
54#endif /*__M4AD_NULL_H__*/
55
56