vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Mon Dec 11 20:16:21 2017 +0200| [de58aec6e8a9e8c2c3b1154f44aeedc6bf24ba92] | committer: Rémi Denis-Courmont
stats: privatize counter types > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=de58aec6e8a9e8c2c3b1154f44aeedc6bf24ba92 --- src/input/stats.c | 15 +++++++++++++++ src/libvlc.h | 15 +-------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/input/stats.c b/src/input/stats.c index d7ee85a6e1..e58322815e 100644 --- a/src/input/stats.c +++ b/src/input/stats.c @@ -28,6 +28,21 @@ #include <vlc_common.h> #include "input/input_internal.h" +typedef struct counter_sample_t +{ + uint64_t value; + mtime_t date; +} counter_sample_t; + +struct counter_t +{ + int i_compute_type; + int i_samples; + counter_sample_t ** pp_samples; + + mtime_t last_update; +}; + /** * Create a statistics counter * \param i_compute_type the aggregation type. One of STATS_LAST (always diff --git a/src/libvlc.h b/src/libvlc.h index a110732a8f..d55732cc33 100644 --- a/src/libvlc.h +++ b/src/libvlc.h @@ -219,20 +219,7 @@ enum STATS_DERIVATIVE, }; -typedef struct counter_sample_t -{ - uint64_t value; - mtime_t date; -} counter_sample_t; - -typedef struct counter_t -{ - int i_compute_type; - int i_samples; - counter_sample_t ** pp_samples; - - mtime_t last_update; -} counter_t; +typedef struct counter_t counter_t; counter_t * stats_CounterCreate (int); void stats_Update (counter_t *, uint64_t, uint64_t *); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
