9 Commits

Author SHA1 Message Date
Wataru Ishida
96fe7cc006 framework: initial support of capability API
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2021-08-11 00:50:40 +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
eaafeb7ce5 lib: add TAI_ prefix to MACROs
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-14 15:10:13 -08: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
266458dfeb framework: add a hook for logging setting
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-03 17:31:56 -08:00
Wataru Ishida
ea862f53ec framework: make host/network interface api callback struct static
these struct should be retrieved by tai_api_query() and better not to
expose

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-03 09:06:15 -08:00
Wataru Ishida
1138c91443 framework: add Exception class
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-03 09:06:15 -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
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