Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(727)

Side by Side Diff: c_metrics_library.h

Issue 2832008: add C wrapper for libmetrics (Closed) Base URL: ssh://git@chromiumos-git//metrics.git
Patch Set: remove include Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Makefile ('k') | c_metrics_library.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef C_METRICS_LIBRARY_H_
6 #define C_METRICS_LIBRARY_H_
7
8 #if defined(__cplusplus)
9 extern "C" {
10 #endif
11 typedef struct CMetricsLibraryOpaque* CMetricsLibrary;
12
13 // C wrapper for MetricsLibrary::MetricsLibrary.
14 CMetricsLibrary CMetricsLibraryNew(void);
petkov 2010/06/17 21:00:32 Do you need the "void" here?
15
16 // C wrapper for MetricsLibrary::~MetricsLibrary.
17 void CMetricsLibraryDelete(CMetricsLibrary handle);
18
19 // C wrapper for MetricsLibrary::Init.
20 void CMetricsLibraryInit(CMetricsLibrary handle);
21
22 // C wrapper for MetricsLibrary::SendToUMA.
23 int CMetricsLibrarySendToUMA(CMetricsLibrary handle,
24 const char* name, int sample,
25 int min, int max, int nbuckets);
26
27 // C wrapper for MetricsLibrary::SendEnumToUMA.
28 int CMetricsLibrarySendEnumToUMA(CMetricsLibrary handle,
29 const char* name, int sample, int max);
30 #if defined(__cplusplus)
31 }
32 #endif
33 #endif // C_METRICS_LIBRARY_H_
OLDNEW
« no previous file with comments | « Makefile ('k') | c_metrics_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698