Dpid services list is now a vector.

This commit is contained in:
2026-01-11 02:24:09 -05:00
parent a682d18b83
commit 3061a4ae71
3 changed files with 26 additions and 16 deletions
+5 -3
View File
@@ -5,6 +5,8 @@
#ifndef DPID_H
#define DPID_H
#include <vector>
#ifdef __cplusplus
extern "C"
{
@@ -63,7 +65,7 @@ extern int numsocks;
extern struct dp *dpi_attr_list;
/*! service served for each plugin */
extern Dlist *services_list;
extern std::vector< service * > *services_list;
/*! Set of sockets watched for connections */
extern fd_set sock_set;
@@ -79,7 +81,7 @@ void free_dpi_attr(struct dp *dpi_attr);
void free_plugin_list(struct dp **dpi_attr_list_ptr, int numdpis);
void free_services_list(Dlist *s_list);
void free_services_list(std::vector< service * > *s_list);
enum file_type get_file_type(char *file_name);
@@ -89,7 +91,7 @@ int register_service(struct dp *dpi_attr, char *service);
int register_all(struct dp **attlist);
int fill_services_list(struct dp *attlist, int numdpis, Dlist **services_list);
int fill_services_list(struct dp *attlist, int numdpis, std::vector< service * > **services_list);
int init_ids_srs_socket(void);