#include "model.h"
Defines | |
| #define | SET_SERVICE_DETAIL(pstmt, idetail) |
Functions | |
| int32_t | aw_model_service2port_list (aw_model_t *model, const aw_model_userhandle_t *handle, aw_model_service2port_listing_t *service2port_listing) |
| Itertator to fill listing with data from sport2service table. Call service2port_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_service_create (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t interfaceid, const byte_t *service) |
| Create a service record with assoc interface,service. | |
| int32_t | aw_model_service_id_query (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *ip, u_int32_t port) |
| Get service id from ip/port. | |
| int32_t | aw_model_service_list_by_interface (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t interfaceid, u_int32_t deleted, aw_model_service_listing_t *service_listing) |
| Itertator to fill listing with data from service table for a service. Call service_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_service_name_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t serviceid, aw_model_service_name_t *service_name) |
| Fill service with data from service table. | |
| int32_t | aw_model_service_netmon_list (aw_model_t *model, const aw_model_userhandle_t *handle, aw_model_service_netmon_listing_t *service_netmon_listing) |
| Itertator to fill listing with data from service table for an service network probe. Call service_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_service_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t serviceid, aw_model_service_detail_t *servicedetail) |
| Fill service with data from service table. | |
| int32_t | aw_model_service_unique (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t serviceid, byte_t *ip, u_int32_t port, byte_t *proto) |
| Return non-zero if there WOULD be 2 ip,port,proto should this be inserted/updated. | |
| int32_t | aw_model_service_update (aw_model_t *model, const aw_model_userhandle_t *handle, const aw_model_service_detail_t *updated_servicedetail) |
| Update service record. | |
|
|
Value: { \
u_int32_t index=0; \
\
/* this series needs to be 1-1 with prepared stmt, order matters! */ \
AWMODEL_SET_INT_MBR(model, pstmt, index++, idetail . serviceid); \
AWMODEL_SET_TEXT_MBR(model, pstmt, index++, idetail . name.prettyname); \
\
AWMODEL_SET_INT_MBR(model, pstmt, index++, idetail . up); \
AWMODEL_SET_INT_MBR(model, pstmt, index++, idetail . active); \
AWMODEL_SET_INT_MBR(model, pstmt, index++, idetail . deleted); \
\
AWMODEL_SET_TEXT_MBR(model, pstmt, index++, idetail . service); \
AWMODEL_SET_TEXT_MBR(model, pstmt, index++, idetail . ip); \
AWMODEL_SET_INT_MBR(model, pstmt, index++, idetail . port); \
AWMODEL_SET_TEXT_MBR(model, pstmt, index++, idetail . proto); \
AWMODEL_SET_TEXT_MBR(model, pstmt, index++, idetail . handler); \
AWMODEL_SET_INT_MBR(model, pstmt, index++, idetail . timeout); \
AWMODEL_SET_INT_MBR(model, pstmt, index++, idetail . cycle); \
AWMODEL_SET_TEXT_MBR(model, pstmt, index++, idetail . handlercron); \
AWMODEL_SET_TEXT_MBR(model, pstmt, index++, idetail . maintcron); \
AWMODEL_SET_INT_MBR(model, pstmt, index++, idetail . perf); \
}
|
|
||||||||||||||||
|
Itertator to fill listing with data from sport2service table. Call service2port_listing->iter.next() until <= 0 . aw_model_service2port_list
|
|
||||||||||||||||||||
|
Create a service record with assoc interface,service. aw_model_service_create
|
|
||||||||||||||||||||
|
Get service id from ip/port. aw_model_service_id_query
|
|
||||||||||||||||||||||||
|
Itertator to fill listing with data from service table for a service. Call service_listing->iter.next() until <= 0 . aw_model_service_list_by_interface
|
|
||||||||||||||||||||
|
Fill service with data from service table. aw_model_service_name_query
|
|
||||||||||||||||
|
Itertator to fill listing with data from service table for an service network probe. Call service_listing->iter.next() until <= 0 . aw_model_service_netmon_list
|
|
||||||||||||||||||||
|
Fill service with data from service table. aw_model_service_query
|
|
||||||||||||||||||||||||||||
|
Return non-zero if there WOULD be 2 ip,port,proto should this be inserted/updated. aw_model_service_unique
|
|
||||||||||||||||
|
Update service record. aw_model_service_update
|