-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tdi operations and notifications (#126)
* tdi::operations * notifications: compiling * tdi operations, notifications without parsing * notifications parsing * code clean up * c frontend changes for operations and notifications * c frontend for notifications * notification, operations minor fixes * cleaning up dead code * minor fix to take uint64 values * minor fixs * addressing review comments * cleaning up logging
- Loading branch information
Showing
19 changed files
with
856 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright(c) 2023 Intel Corporation. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this software except as stipulated in the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/** @file tdi_notifications.h | ||
* | ||
* @brief Contains TDI Table notifications APIs | ||
*/ | ||
#ifndef _TDI_NOTIFICATIONS_H | ||
#define _TDI_NOTIFICATIONS_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef void (*tdi_notification_callback)( | ||
const tdi_table_key_hdl *key, | ||
const tdi_table_data_hdl *data, | ||
const tdi_notification_param_hdl *params, | ||
void *cookie); | ||
|
||
tdi_status_t tdi_notifications_set_value( | ||
tdi_notification_param_hdl *notifications_hdl, | ||
const tdi_id_t field_id, | ||
const uint64_t value); | ||
|
||
tdi_status_t tdi_notifications_set_value_array( | ||
tdi_notification_param_hdl *notifications_hdl, | ||
const tdi_id_t field_id, | ||
const uint64_t *value, | ||
const uint32_t array_sz); | ||
|
||
tdi_status_t tdi_notifications_get_value( | ||
const tdi_notification_param_hdl *notifications_hdl, | ||
const tdi_id_t field_id, | ||
uint64_t *value); | ||
|
||
tdi_status_t tdi_notifications_get_value_array_size( | ||
const tdi_notification_param_hdl *notification_hdl, | ||
const tdi_id_t field_id, | ||
uint32_t *array_size); | ||
|
||
tdi_status_t tdi_notifications_get_value_array( | ||
const tdi_notification_param_hdl *notification_hdl, | ||
const tdi_id_t field_id, | ||
uint64_t *val); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // _TDI_NOTIFICATIONS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.