9 Commits

Author SHA1 Message Date
Wataru Ishida
b1707a9905 improve build
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2022-02-12 23:43:18 +09:00
Wataru Ishida
e3e3a0fc4c use -Wall -Werror for build
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2022-02-12 23:43:18 +09:00
Wataru Ishida
06e7774ff3 framework: make the destructor of Platform virtual
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2021-07-28 12:07:54 +09:00
Wataru Ishida
7595139b74 add meta APIs to TAI
Unlike SAI, TAI needs to handle different kinds of devices
simultaneously. In order to support this, we have tai-mux library
which multiplexes multiple TAI libraries and provide a single TAI interface
to upper application.

However, there was no multiplex or aggregation layer for TAI *metadata*.
TAI metadata is used to know each TAI attributes characteristic and provides
utility functionality like string serialization.

Because of this lack of multiplex layer, application developers have to
create a TAI meta library by manually aggregating all TAI attributes of
TAI libraries which are planned to be used.

This is tedious, error prone works and makes it difficult to support
new TAI library dynamically.

In order to solve this issue, this commits adds meta APIs to TAI APIs.
By doing so, TAI *metadata* can be multiplexed by tai-mux just like
other APIs.

This commit also enhances TAI library framework to automatically support
the new meta APIs.

TAI library which is based on the framework will get the meta API
functionally automatically by recompiling it.

Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2021-04-26 15:44:28 +09:00
Wataru Ishida
1b4a6273c4 framework/lib: curve out common helper class under lib/
also change framework namespace to ::tai::framework from ::tai

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-06 10:56:59 -08:00
Wataru Ishida
f22ea252db framework: support logging
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-12-22 00:55:44 -08:00
Wataru Ishida
a4148b8d02 framework: update Makefile
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-12-19 13:01:38 -08:00
Wataru Ishida
bde0662dc0 framework: fix build
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-12-19 13:01:38 -08:00
Wataru Ishida
96eb1eab11 tools/framework: add a framework for TAI library
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-12-18 15:19:32 -08:00