commonlibrary

Introduction

The commonlibrary subsystem provides common enhanced APIs for development in C, C++ and JS.

c_utils

  • Enhanced APIs for operations related to files, paths, and strings
  • APIs related to the read-write lock, semaphore, timer, thread, and thread pool
  • APIs related to the security data container and data serialization
  • Error codes for each subsystem
  • Safe functions in C

ets_utils

  • JSAPIs for operation of URI, URL and xml
  • JSAPIs for character encoder and decoder
  • JSAPIs for operation of process
  • Multithreading ability in JS

utils_lite

  • Hardware Abstraction Layer (HAL) APIs for performing operations on standard files
  • APIs for internal functions, such as the timer

Directory Structure

/commonlibrary
    ├── c_utils                  # Enhanced basic C/C++ library for developers 
    ├── ets_utils                # Enhanced basic JS library for developers
    └── utils_lite               # Basic tools for liteOS, including C and JS.

Repositories Involved

commonlibrary subsystem

commonlibrary_c_utils

commonlibrary_ets_utils

commonlibrary_utils_lite