summaryrefslogtreecommitdiff
path: root/common/src/tfe_resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/tfe_resource.cpp')
-rw-r--r--common/src/tfe_resource.cpp24
1 files changed, 5 insertions, 19 deletions
diff --git a/common/src/tfe_resource.cpp b/common/src/tfe_resource.cpp
index 4fc8265..1cb61ff 100644
--- a/common/src/tfe_resource.cpp
+++ b/common/src/tfe_resource.cpp
@@ -13,9 +13,6 @@ struct maat_table_info
{
int id;
const char *name;
- Maat_plugin_EX_new_func_t *new_func;
- Maat_plugin_EX_dup_func_t *dup_func;
- Maat_plugin_EX_free_func_t *free_func;
};
static Maat_feather_t static_maat = NULL;
static tfe_kafka_logger_t *kafka_logger = NULL;
@@ -235,16 +232,11 @@ finish:
}
static struct maat_table_info maat_pub_tables[TABLE_TYPE_MAX] = {
- // TABLE_SECURITY_SOURCE_ASN
- {0, "TSG_SECURITY_SOURCE_ASN", NULL, NULL, NULL},
- // TABLE_SECURITY_DESTINATION_ASN
- {0, "TSG_SECURITY_DESTINATION_ASN", NULL, NULL, NULL},
- // TABLE_SECURITY_SOURCE_LOCATION
- {0, "TSG_SECURITY_SOURCE_LOCATION", NULL, NULL, NULL},
- // TABLE_SECURITY_DESTINATION_LOCATION
- {0, "TSG_SECURITY_DESTINATION_LOCATION", NULL, NULL, NULL},
- // TABLE_OBJ_SUBSCRIBER_ID
- {0, "TSG_OBJ_SUBSCRIBER_ID", NULL, NULL, NULL}};
+ {0, "TSG_SECURITY_SOURCE_ASN"},
+ {0, "TSG_SECURITY_DESTINATION_ASN"},
+ {0, "TSG_SECURITY_SOURCE_LOCATION"},
+ {0, "TSG_SECURITY_DESTINATION_LOCATION"},
+ {0, "TSG_OBJ_SUBSCRIBER_ID"}};
static int register_maat_table()
{
@@ -256,12 +248,6 @@ static int register_maat_table()
TFE_LOG_ERROR(g_default_logger, "Maat table %s register failed.", maat_pub_tables[i].name);
return -1;
}
-
- if (maat_pub_tables[i].new_func || maat_pub_tables[i].dup_func || maat_pub_tables[i].free_func)
- {
- Maat_ip_plugin_EX_register(static_maat, maat_pub_tables[i].id, maat_pub_tables[i].new_func,
- maat_pub_tables[i].free_func, maat_pub_tables[i].dup_func, 0, NULL);
- }
}
return 0;