1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
<%
import re
from templates import helper as th
%><%
n=namespace
N=n.upper()
x=tags['$x']
X=x.upper()
%>/*
*
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* @file ${name}.h
*
*/
#ifndef ${name}_H
#define ${name}_H
#if defined(__cplusplus)
#pragma once
#endif
#include "${n}_api.h"
#include "layers/zel_tracing_register_cb.h"
%for tbl in th.get_zel_pfncbtables(specs, meta, n, tags):
///////////////////////////////////////////////////////////////////////////////
/// @brief Table of ${tbl['name']} callback functions pointers
typedef struct _${tbl['type']}
{
%for obj in tbl['functions']:
${th.append_ws(th.make_pfncb_type(n, tags, obj), 63)} ${th.make_pfncb_name(n, tags, obj)};
%endfor
} ${tbl['type']};
%endfor
///////////////////////////////////////////////////////////////////////////////
/// @brief Container for all callbacks
typedef struct _zel_${n}_all_callbacks_t
{
%for tbl in th.get_zel_pfncbtables(specs, meta, n, tags):
${th.append_ws(tbl['type'], 35)} ${tbl['name']};
%endfor
} zel_${n}_all_callbacks_t;
#endif // ${name}_H
|