Light Libraries 1.0 版本正式发布,非常方便集成,适合中小型C工程及嵌入式工程 更新日志: 1.新增轻量级配置库(支持json/lua/ini等格式) 2.新增MP4解析库 3.新增容器/循环缓冲库 4.修复多个库的bug Light libraries是一组通用的C基础库,目标是为减少重复造轮子而写。 全部用POSIX C实现,目标是为了跨平台兼容x86, arm, android, ios. 每个库尽可能各自独立,而且API容易使用 尽量不依赖任何第三方库 目标是为减少重复造轮子 实现了日志、原子操作、哈希字典、红黑树、动态库加载、线程、锁操作、配置文件、os适配层、事件驱动、工作队列、RPC、IPC等基础库,和p2p穿透等网络库 一般的开源项目如nginx/ffmpeg/redis等,都有各自的基础库,且实现较为相近,取各库的优点,实现较为通用的库,且库的命名不带前缀,如ngx_log, av_log, redisLog等,直接命名logi/loge/logd,在实现自己的工程时,方便代码的快速集成。 当库完成度和稳定性高时,会release 到ubuntu launchpad.net PPA供下载安装 基础库列表 LibraryNote libatomicAtomic operation library. libcmdBased on readline, a bash like library. libconfigConfigure library, support ini, json. libdictHash key-value dictonary library. libdlmodDynamic linking loader wrapper library. libgeventReactor event library, like libevent libhashHash key-value library based on hlist from kernel. libipcInter-Process Communication, support mqueue/netlink/shm. liblogLog library, support console/file/rsyslog. libosalOSAL(Operating System Abstraction Layer) library. libp2pHigh level p2p punch hole library, easy API to use. libptcpPseudo Tcp Socket over UDP, rewrite with C from libjingle. librbtreeLibrbtree comes from linux kernel rbtree. librpcRemote Procedure Call library. libsktSocket wrapper library for easy use. libstunSTUN protocol wrapper library. libtimeTime wrapper library for easy use. liblockLock/mutex/sem wrapper library for easy use. libthreadThread wrapper library for easy use. libworkqWork queue in userspace like work-queue/tasklet in kernel. Light Libraries 1.0 正式发布,通用的 C 基础库下载地址