最近在看android的hal层,但是它的头文件感觉很乱啊经常要找很久才知道它引用的是哪的头文件比如下边
#include <errno.h>
#include <pthread.h>
#include <stdint.h>
#include <sys/time.h>
#include <stdlib.h>#include <cutils/log.h>
#include <cutils/str_parms.h>
#include <cutils/properties.h>#include <hardware/hardware.h>
#include <system/audio.h>
#include <hardware/audio.h>#include <tinyalsa/asoundlib.h>
#include <audio_utils/resampler.h>
#include <audio_utils/echo_reference.h>
#include <hardware/audio_effect.h>
#include <audio_effects/effect_aec.h>#include "ril_interface.h"它是引用哪几个路径做为头文件的根目录呢?

解决方案 »

  1.   

    用Source Insight稍微能改善一下...看多了就好了。前面都是一些接口层,理解就好了,最终的实现驱动都是放在单独的文件夹里的。
      

  2.   

    两点 一个是 Source Insight 的确是能帮一定的忙 但是 有时候会让你一条路走到黑,
    有时候需要看 make 文件  剩下的就是根据你看的经验了 我以前看 也是云里雾里 没人指点慢慢 就OK了经理一段就好了