nmsg 1.3.1
statsmod.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 by Domaintools, LLC.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef NMSG_STATSMOD_H
18#define NMSG_STATSMOD_H
19
53nmsg_statsmod_t
54nmsg_statsmod_init(const char *name, const void *param, const size_t len_param);
55
62void
63nmsg_statsmod_destroy(nmsg_statsmod_t *statsmod);
64
78nmsg_statsmod_add_io(nmsg_statsmod_t statsmod, nmsg_io_t io, const char *name);
79
93nmsg_statsmod_remove_io(nmsg_statsmod_t statsmod, nmsg_io_t io);
94
95#endif /* NMSG_STATSMOD_H */
nmsg_res
nmsg result code
Definition: res.h:25
void nmsg_statsmod_destroy(nmsg_statsmod_t *statsmod)
Destroy a statistics module.
nmsg_statsmod_t nmsg_statsmod_init(const char *name, const void *param, const size_t len_param)
Initialize a statistics module with the given parameters.
nmsg_res nmsg_statsmod_remove_io(nmsg_statsmod_t statsmod, nmsg_io_t io)
Remove an nmsg_io_t object from statsmod instrumentation.
nmsg_res nmsg_statsmod_add_io(nmsg_statsmod_t statsmod, nmsg_io_t io, const char *name)
Add an nmsg_io_t object to the statsmod instrumentation.