File src/column_view.c changed (mode: 100644) (index 8ced73596..9f7587cee) |
... |
... |
typedef struct |
58 |
58 |
column_t; |
column_t; |
59 |
59 |
|
|
60 |
60 |
/* Column view description structure. Typedef is in the header file. */ |
/* Column view description structure. Typedef is in the header file. */ |
61 |
|
struct columns_t |
|
|
61 |
|
struct columns_list_t |
62 |
62 |
{ |
{ |
63 |
63 |
size_t max_width; /* Maximum width of one line of the view. */ |
size_t max_width; /* Maximum width of one line of the view. */ |
64 |
64 |
size_t count; /* Number of columns in the list. */ |
size_t count; /* Number of columns in the list. */ |
|
... |
... |
init_new_column_desc(column_desc_t *desc, int column_id, column_func func) |
141 |
141 |
columns_t |
columns_t |
142 |
142 |
columns_create(void) |
columns_create(void) |
143 |
143 |
{ |
{ |
144 |
|
struct columns_t *const result = malloc(sizeof(struct columns_t)); |
|
|
144 |
|
struct columns_list_t *const result = malloc(sizeof(struct columns_list_t)); |
145 |
145 |
if(result == NULL) |
if(result == NULL) |
146 |
146 |
{ |
{ |
147 |
147 |
return NULL_COLUMNS; |
return NULL_COLUMNS; |
File src/column_view.h changed (mode: 100644) (index 108da0fdb..9dbc8dea6) |
... |
... |
typedef enum |
54 |
54 |
CropType; |
CropType; |
55 |
55 |
|
|
56 |
56 |
/* Type of columns handle. */ |
/* Type of columns handle. */ |
57 |
|
typedef struct columns_t *columns_t; |
|
|
57 |
|
typedef struct columns_list_t *columns_t; |
58 |
58 |
|
|
59 |
59 |
/* A column callback function, which sould fill the buf with column text. */ |
/* A column callback function, which sould fill the buf with column text. */ |
60 |
60 |
typedef void (*column_func)(int id, const void *data, size_t buf_len, |
typedef void (*column_func)(int id, const void *data, size_t buf_len, |