Merge "stats_event_list changes for statsd mainline api"
am: f95468d329
Change-Id: Ibd5d278f6af65a3c63bb97f6e5cf1b7b60180e4d
This commit is contained in:
commit
930d04056f
|
@ -18,6 +18,7 @@
|
|||
#define ANDROID_STATS_LOG_STATS_EVENT_LIST_H
|
||||
|
||||
#include <log/log_event_list.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -27,6 +28,8 @@ int write_to_logger(android_log_context context, log_id_t id);
|
|||
void note_log_drop(int error);
|
||||
void stats_log_close();
|
||||
int android_log_write_char_array(android_log_context ctx, const char* value, size_t len);
|
||||
extern int (*write_to_statsd)(struct iovec* vec, size_t nr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -41,7 +41,7 @@ typedef struct {
|
|||
extern struct android_log_transport_write statsdLoggerWrite;
|
||||
|
||||
static int __write_to_statsd_init(struct iovec* vec, size_t nr);
|
||||
static int (*write_to_statsd)(struct iovec* vec, size_t nr) = __write_to_statsd_init;
|
||||
int (*write_to_statsd)(struct iovec* vec, size_t nr) = __write_to_statsd_init;
|
||||
|
||||
// Similar to create_android_logger(), but instead of allocation a new buffer,
|
||||
// this function resets the buffer for resuse.
|
||||
|
|
Loading…
Reference in New Issue