FreeRDP
metrics.h
1 
20 #ifndef FREERDP_METRICS_H
21 #define FREERDP_METRICS_H
22 
23 #include <freerdp/api.h>
24 
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29 
30  struct rdp_metrics
31  {
32  rdpContext* context;
33 
34  UINT64 TotalCompressedBytes;
35  UINT64 TotalUncompressedBytes;
36  double TotalCompressionRatio;
37  };
38  typedef struct rdp_metrics rdpMetrics;
39 
40  FREERDP_API double metrics_write_bytes(rdpMetrics* metrics, UINT32 UncompressedBytes,
41  UINT32 CompressedBytes);
42 
43  FREERDP_API void metrics_free(rdpMetrics* metrics);
44 
45  WINPR_ATTR_MALLOC(metrics_free, 1)
46  FREERDP_API rdpMetrics* metrics_new(rdpContext* context);
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif /* FREERDP_METRICS_H */