[all]: rename file and macro from RK to MPP

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@59 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-08-07 09:00:27 +00:00
parent c89c44512f
commit 1b5d44e56e
15 changed files with 47 additions and 36 deletions

View File

@@ -19,8 +19,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "rk_log.h" #include "mpp_log.h"
#include "rk_env.h" #include "mpp_env.h"
#include "mpp_info.h" #include "mpp_info.h"
#include "svn_info.h" #include "svn_info.h"

View File

@@ -16,7 +16,7 @@
#define MODULE_TAG "mpp_info_test" #define MODULE_TAG "mpp_info_test"
#include "rk_log.h" #include "mpp_log.h"
#include "mpp_info.h" #include "mpp_info.h"
int main() int main()

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef __RK_ENV_H__ #ifndef __MPP_ENV_H__
#define __RK_ENV_H__ #define __MPP_ENV_H__
#include "rk_type.h" #include "rk_type.h"
@@ -33,5 +33,5 @@ RK_S32 rk_set_env_str(const char *name, char *value);
} }
#endif #endif
#endif /*__RK_ENV_H__*/ #endif /*__MPP_ENV_H__*/

View File

@@ -14,11 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef __RK_LIST_H__ #ifndef __MPP_LIST_H__
#define __RK_LIST_H__ #define __MPP_LIST_H__
#include "rk_type.h" #include "rk_type.h"
#include "rk_thread.h"
#include "mpp_thread.h"
/* /*
* two list structures are defined, one for C++, the other for C * two list structures are defined, one for C++, the other for C
@@ -161,4 +162,4 @@ static inline int list_empty(struct list_head *head)
#endif #endif
#endif /*__RK_LIST_H__*/ #endif /*__MPP_LIST_H__*/

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef __RK_LOG_H__ #ifndef __MPP_LOG_H__
#define __RK_LOG_H__ #define __MPP_LOG_H__
#include "rk_type.h" #include "rk_type.h"
@@ -76,4 +76,4 @@ void _rk_err(const char *tag, const char *fmt, ...);
#endif #endif
#endif /*__RK_LOG_H__*/ #endif /*__MPP_LOG_H__*/

View File

@@ -14,10 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef __RK_MALLOC_H__ #ifndef __MPP_MALLOC_H__
#define __RK_MALLOC_H__ #define __MPP_MALLOC_H__
#include <stdlib.h> #include <stdlib.h>
#include "rk_type.h" #include "rk_type.h"
#define rk_malloc_tagged(type, count, tag) \ #define rk_malloc_tagged(type, count, tag) \
@@ -40,5 +41,5 @@ void rk_mpp_free(void *ptr);
} }
#endif #endif
#endif /*__RK_MPP_MALLOC_H__*/ #endif /*__MPP_MALLOC_H__*/

View File

@@ -21,8 +21,8 @@
* Date : 9:47 2015/7/27 * Date : 9:47 2015/7/27
*/ */
#ifndef __RK_THREAD_H__ #ifndef __MPP_THREAD_H__
#define __RK_THREAD_H__ #define __MPP_THREAD_H__
#if defined(_WIN32) && !defined(__MINGW32CE__) #if defined(_WIN32) && !defined(__MINGW32CE__)
@@ -42,4 +42,4 @@
#endif #endif
#endif /*__RK_THREAD_H__*/ #endif /*__MPP_THREAD_H__*/

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include "rk_env.h" #include "mpp_env.h"
#include "os_env.h" #include "os_env.h"
// TODO: add previous value compare to save call times // TODO: add previous value compare to save call times

View File

@@ -20,8 +20,8 @@
#include <stdarg.h> #include <stdarg.h>
#include <errno.h> #include <errno.h>
#include "rk_log.h" #include "mpp_log.h"
#include "rk_list.h" #include "mpp_list.h"
#define LIST_DEBUG(fmt, ...) rk_log(fmt, ## __VA_ARGS__) #define LIST_DEBUG(fmt, ...) rk_log(fmt, ## __VA_ARGS__)

View File

@@ -15,9 +15,12 @@
*/ */
#define MODULE_TAG "rk_log" #define MODULE_TAG "rk_log"
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include "rk_log.h"
#include "mpp_log.h"
#include "os_log.h" #include "os_log.h"
#ifdef __cplusplus #ifdef __cplusplus

View File

@@ -15,15 +15,18 @@
*/ */
#define MODULE_TAG "rk_malloc" #define MODULE_TAG "rk_malloc"
#include <string.h>
#include "rk_type.h" #include "rk_type.h"
#include "rk_log.h"
#include "rk_env.h"
#include "rk_malloc.h"
#include "rk_list.h"
#include "mpp_err.h" #include "mpp_err.h"
#include "mpp_log.h"
#include "mpp_env.h"
#include "mpp_malloc.h"
#include "mpp_list.h"
#include "os_malloc.h" #include "os_malloc.h"
#include <string.h>
// export configure for script detection // export configure for script detection
#define CONFIG_OSAL_MEM_LIST "osal_mem_list" #define CONFIG_OSAL_MEM_LIST "osal_mem_list"

View File

@@ -15,8 +15,8 @@
*/ */
#define MODULE_TAG "rk_env_test" #define MODULE_TAG "rk_env_test"
#include "rk_env.h" #include "mpp_env.h"
#include "rk_log.h" #include "mpp_log.h"
const char env_debug[] = "test_env_debug"; const char env_debug[] = "test_env_debug";
const char env_string[] = "test_env_string"; const char env_string[] = "test_env_string";

View File

@@ -15,8 +15,8 @@
*/ */
#define MODULE_TAG "rk_log_test" #define MODULE_TAG "rk_log_test"
#include "rk_log.h"
#include "mpp_log.h"
int main() int main()
{ {

View File

@@ -15,9 +15,10 @@
*/ */
#define MODULE_TAG "rk_malloc_test" #define MODULE_TAG "rk_malloc_test"
#include "rk_log.h"
#include "rk_env.h" #include "mpp_log.h"
#include "rk_malloc.h" #include "mpp_env.h"
#include "mpp_malloc.h"
// TODO: need to add pressure test case and parameter scan case // TODO: need to add pressure test case and parameter scan case

View File

@@ -16,13 +16,15 @@
*/ */
#define MODULE_TAG "rk_thread_test" #define MODULE_TAG "rk_thread_test"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "rk_type.h" #include "rk_type.h"
#include "rk_log.h"
#include "rk_thread.h" #include "mpp_log.h"
#include "mpp_thread.h"
// TODO: add thread mutex and condition test case // TODO: add thread mutex and condition test case