[go: up one dir, main page]

File: kstats.h

package info (click to toggle)
libkate 0.3.7-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,484 kB
  • ctags: 4,083
  • sloc: ansic: 10,002; sh: 8,853; yacc: 2,250; python: 721; lex: 362; makefile: 239
file content (33 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Copyright (C) 2008 Vincent Penquerc'h.
   This file is part of the Kate codec library.
   Written by Vincent Penquerc'h.

   Use, distribution and reproduction of this library is governed
   by a BSD style source license included with this source in the
   file 'COPYING'. Please read these terms before distributing. */


#ifndef KATE_kstats_h_GUARD
#define KATE_kstats_h_GUARD

#include "kate/kate.h"

struct kate_stream;

typedef struct {
  kate_stream *ks;
  kate_uint64_t stream_length;
  kate_uint64_t n_packets_total;
  kate_uint64_t n_packets[256];
  kate_uint64_t min_size[256];
  kate_uint64_t max_size[256];
  kate_uint64_t total_size[256];
} katalyzer_stats;

extern katalyzer_stats *katalyzer_stats_create(struct kate_stream *ks);
extern void katalyzer_stats_destroy(katalyzer_stats *stats);
extern void katalyzer_stats_add_packet(katalyzer_stats *stats,kate_packet *kp);
extern int katalyzer_stats_matches(const katalyzer_stats *stats,const kate_stream *ks);

#endif