Skip to content
Permalink
Browse files

stats: changed API to use zephyr types

Changed API of the Statistics module. Now it uses Zephyr types.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
  • Loading branch information...
kapi-no authored and nashif committed Apr 26, 2019
1 parent 78a39b8 commit 6a0837b4784e9b7b9c798afbc549015c51553cba
Showing with 6 additions and 6 deletions.
  1. +6 −6 include/stats.h
@@ -52,7 +52,7 @@
#define ZEPHYR_INCLUDE_STATS_H_

#include <stddef.h>
#include <stdint.h>
#include <zephyr/types.h>

#ifdef __cplusplus
extern "C" {
@@ -214,8 +214,8 @@ struct stats_hdr {
* @param group__ The group containing the entry to clear.
* @param var__ The statistic entry to clear.
*/
void stats_init(struct stats_hdr *shdr, uint8_t size, uint16_t cnt,
const struct stats_name_map *map, uint16_t map_cnt);
void stats_init(struct stats_hdr *shdr, u8_t size, u16_t cnt,
const struct stats_name_map *map, u16_t map_cnt);

/**
* @brief Registers a statistics group to be managed.
@@ -255,8 +255,8 @@ int stats_register(const char *name, struct stats_hdr *shdr);
*
* @see STATS_INIT_AND_REG
*/
int stats_init_and_reg(struct stats_hdr *hdr, uint8_t size, uint16_t cnt,
const struct stats_name_map *map, uint16_t map_cnt,
int stats_init_and_reg(struct stats_hdr *hdr, u8_t size, u16_t cnt,
const struct stats_name_map *map, u16_t map_cnt,
const char *name);

/**
@@ -279,7 +279,7 @@ void stats_reset(struct stats_hdr *shdr);
* nonzero to abort the walk.
*/
typedef int stats_walk_fn(struct stats_hdr *hdr, void *arg,
const char *name, uint16_t off);
const char *name, u16_t off);

/**
* @brief Applies a function to every stat entry in a group.

0 comments on commit 6a0837b

Please sign in to comment.
You can’t perform that action at this time.