Skip to content

Commit

Permalink
global: rerun clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Nov 16, 2023
1 parent 96dd0ab commit 460a058
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 33 deletions.
22 changes: 11 additions & 11 deletions src/include/base/buffer-type.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ struct sid_buffer {
};

struct sid_buffer_type {
int (*create)(struct sid_buffer *buf);
int (*destroy)(struct sid_buffer *buf);
int (*reset)(struct sid_buffer *buf);
int (*add)(struct sid_buffer *buf, void *data, size_t len, const void **mem, size_t *pos);
int (*fmt_add)(struct sid_buffer *buf, const void **mem, size_t *pos, const char *fmt, va_list ap);
int (*release)(struct sid_buffer *buf, size_t pos, bool rewind);
int (*release_mem)(struct sid_buffer *buf, const void *mem, bool rewind);
bool (*is_complete)(struct sid_buffer *buf, int *ret_code);
int (*get_data)(struct sid_buffer *buf, size_t pos, const void **data, size_t *data_size);
int (*get_fd)(struct sid_buffer *buf);
size_t (*count)(struct sid_buffer *buf);
int (*create)(struct sid_buffer *buf);
int (*destroy)(struct sid_buffer *buf);
int (*reset)(struct sid_buffer *buf);
int (*add)(struct sid_buffer *buf, void *data, size_t len, const void **mem, size_t *pos);
int (*fmt_add)(struct sid_buffer *buf, const void **mem, size_t *pos, const char *fmt, va_list ap);
int (*release)(struct sid_buffer *buf, size_t pos, bool rewind);
int (*release_mem)(struct sid_buffer *buf, const void *mem, bool rewind);
bool (*is_complete)(struct sid_buffer *buf, int *ret_code);
int (*get_data)(struct sid_buffer *buf, size_t pos, const void **data, size_t *data_size);
int (*get_fd)(struct sid_buffer *buf);
size_t (*count)(struct sid_buffer *buf);
ssize_t (*read)(struct sid_buffer *buf, int fd);
ssize_t (*write)(struct sid_buffer *buf, int fd, size_t pos);
};
Expand Down
10 changes: 5 additions & 5 deletions src/include/internal/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ char *util_str_rstr(const char *haystack, const char *needle);
char *util_str_combstr(const char *haystack, const char *prefix, const char *needle, const char *suffix, bool ignorecase);

typedef int (*util_str_token_fn_t)(const char *token, size_t len, bool merge_back, void *data);
int util_str_iterate_tokens(const char *str,
const char *delims,
const char *quotes,
util_str_token_fn_t token_fn,
void *token_fn_data);
int util_str_iterate_tokens(const char *str,
const char *delims,
const char *quotes,
util_str_token_fn_t token_fn,
void *token_fn_data);

char *util_str_comb_to_str(util_mem_t *mem, const char *prefix, const char *str, const char *suffix);

Expand Down
22 changes: 11 additions & 11 deletions src/include/log/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ typedef enum {

struct log_target {
const char *name;
void (*open)(int verbose_mode);
void (*close)(void);
void (*output)(int level_id,
const char *prefix,
int class_id,
int errno_id,
const char *src_file_name,
int src_line_number,
const char *function_name,
const char *format,
va_list ap);
void (*open)(int verbose_mode);
void (*close)(void);
void (*output)(int level_id,
const char *prefix,
int class_id,
int errno_id,
const char *src_file_name,
int src_line_number,
const char *function_name,
const char *format,
va_list ap);
};

extern const struct log_target log_target_standard;
Expand Down
10 changes: 5 additions & 5 deletions src/include/resource/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ extern "C" {
typedef struct sid_resource sid_resource_t;

typedef struct sid_resource_type {
const char *name;
const char *short_name;
const char *description;
int (*init)(sid_resource_t *res, const void *kickstart_data, void **data);
int (*destroy)(sid_resource_t *res);
const char *name;
const char *short_name;
const char *description;
int (*init)(sid_resource_t *res, const void *kickstart_data, void **data);
int (*destroy)(sid_resource_t *res);
unsigned int with_event_loop:1;
unsigned int with_watchdog :1;
} sid_resource_type_t;
Expand Down
2 changes: 1 addition & 1 deletion src/resource/ubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ struct sid_ucmd_ctx {
struct cmd_reg {
const char *name;
uint32_t flags;
int (*exec)(sid_resource_t *cmd_res);
int (*exec)(sid_resource_t *cmd_res);
};

typedef struct {
Expand Down

0 comments on commit 460a058

Please sign in to comment.