osi: Apply clang-format
cd osi/
clang-format -i --style=file include/*.h include/socket_utils/* src/*.cc \
src/socket_utils/* src/protos/* test/*
Test: mma -j32
Change-Id: I659e586076f1e2ec8f687cd33f441700b8d1f823
diff --git a/osi/include/data_dispatcher.h b/osi/include/data_dispatcher.h
index 838ee31..7349444 100644
--- a/osi/include/data_dispatcher.h
+++ b/osi/include/data_dispatcher.h
@@ -35,29 +35,33 @@
// Creates a new data dispatcher object, with the given name.
// The returned object must be freed by calling |data_dispatcher_free|.
// Returns NULL on failure. |name| may not be NULL.
-data_dispatcher_t *data_dispatcher_new(const char *name);
+data_dispatcher_t* data_dispatcher_new(const char* name);
// Frees a data dispatcher object created by |data_dispatcher_new|.
// |data_dispatcher| may be NULL.
-void data_dispatcher_free(data_dispatcher_t *dispatcher);
+void data_dispatcher_free(data_dispatcher_t* dispatcher);
// Registers |type| and |queue| with the data dispatcher so that data
// sent under |type| ends up in |queue|. If |type| is already registered,
// it is replaced. If |queue| is NULL, the existing registration is
// removed, if it exists. |dispatcher| may not be NULL.
-void data_dispatcher_register(data_dispatcher_t *dispatcher, data_dispatcher_type_t type, fixed_queue_t *queue);
+void data_dispatcher_register(data_dispatcher_t* dispatcher,
+ data_dispatcher_type_t type,
+ fixed_queue_t* queue);
// Registers a default queue to send data to when there is not a specific
// type/queue relationship registered. If a default queue is already registered,
// it is replaced. If |queue| is NULL, the existing registration is
// removed, if it exists. |dispatcher| may not be NULL.
-void data_dispatcher_register_default(data_dispatcher_t *dispatcher, fixed_queue_t *queue);
+void data_dispatcher_register_default(data_dispatcher_t* dispatcher,
+ fixed_queue_t* queue);
// Dispatches |data| to the queue registered for |type|. If no such registration
// exists, it is dispatched to the default queue if it exists.
// Neither |dispatcher| nor |data| may be NULL.
// Returns true if data dispatch was successful.
-bool data_dispatcher_dispatch(data_dispatcher_t *dispatcher, data_dispatcher_type_t type, void *data);
+bool data_dispatcher_dispatch(data_dispatcher_t* dispatcher,
+ data_dispatcher_type_t type, void* data);
#ifdef __cplusplus
}