summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-11-24 12:00:33 +0100
committerDamiano Galassi <[email protected]>2017-11-24 12:00:33 +0100
commitb73dabc600420663a5962d3da5decdd8c3a7bbd1 (patch)
tree918126b2dcd8125c18ebd6c3a44cb4d832c83e4b
parent13c8582eff580913d290b98bc0a58970121ee088 (diff)
libhb: fix warnings.
-rw-r--r--libhb/common.h10
-rw-r--r--libhb/hb.h6
-rw-r--r--libhb/hb_dict.h2
-rw-r--r--libhb/ports.h14
-rw-r--r--libhb/preset.h2
5 files changed, 17 insertions, 17 deletions
diff --git a/libhb/common.h b/libhb/common.h
index dcd4640ac..cd7c40eef 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -127,7 +127,7 @@ void hb_buffer_list_close(hb_buffer_list_t *list);
int hb_buffer_list_count(hb_buffer_list_t *list);
int hb_buffer_list_size(hb_buffer_list_t *list);
-hb_list_t * hb_list_init();
+hb_list_t * hb_list_init(void);
int hb_list_count( const hb_list_t * );
void hb_list_add( hb_list_t *, void * );
void hb_list_insert( hb_list_t * l, int pos, void * p );
@@ -179,7 +179,7 @@ hb_attachment_t *hb_attachment_copy(const hb_attachment_t *src);
hb_list_t *hb_attachment_list_copy(const hb_list_t *src);
void hb_attachment_close(hb_attachment_t **attachment);
-hb_metadata_t * hb_metadata_init();
+hb_metadata_t * hb_metadata_init(void);
hb_metadata_t * hb_metadata_copy(const hb_metadata_t *src);
void hb_metadata_close(hb_metadata_t **metadata);
void hb_metadata_set_name( hb_metadata_t *metadata, const char *name );
@@ -331,7 +331,7 @@ struct hb_subtitle_config_s
*
*/
-void hb_common_global_init();
+void hb_common_global_init(void);
int hb_video_framerate_get_from_name(const char *name);
const char* hb_video_framerate_get_name(int framerate);
@@ -374,8 +374,8 @@ void hb_audio_compression_get_limits(uint32_t codec, float *low, float *high, f
float hb_audio_compression_get_best(uint32_t codec, float compression);
float hb_audio_compression_get_default(uint32_t codec);
-int hb_audio_dither_get_default();
-int hb_audio_dither_get_default_method(); // default method, if enabled && supported
+int hb_audio_dither_get_default(void);
+int hb_audio_dither_get_default_method(void); // default method, if enabled && supported
int hb_audio_dither_is_supported(uint32_t codec);
int hb_audio_dither_get_from_name(const char *name);
const char* hb_audio_dither_get_description(int method);
diff --git a/libhb/hb.h b/libhb/hb.h
index f6d7eb5f4..d26b32319 100644
--- a/libhb/hb.h
+++ b/libhb/hb.h
@@ -34,7 +34,7 @@ hb_handle_t * hb_init( int verbose );
void hb_log_level_set(hb_handle_t *h, int level);
/* hb_get_version() */
-const char * hb_get_full_description();
+const char * hb_get_full_description(void);
const char * hb_get_version( hb_handle_t * );
int hb_get_build( hb_handle_t * );
@@ -133,10 +133,10 @@ void hb_close( hb_handle_t ** );
/* hb_global_init()
Performs process initialization. */
-int hb_global_init();
+int hb_global_init(void);
/* hb_global_close()
Performs final cleanup for the process. */
-void hb_global_close();
+void hb_global_close(void);
/* hb_get_instance_id()
Return the unique instance id of an libhb instance created by hb_init. */
diff --git a/libhb/hb_dict.h b/libhb/hb_dict.h
index 0696455eb..d02c7dd50 100644
--- a/libhb/hb_dict.h
+++ b/libhb/hb_dict.h
@@ -119,7 +119,7 @@ void hb_value_decref(hb_value_t *value);
void hb_value_free(hb_value_t **value);
/* Create new hb_value_t */
-hb_value_t * hb_value_null();
+hb_value_t * hb_value_null(void);
hb_value_t * hb_value_string(const char *value);
hb_value_t * hb_value_int(json_int_t value);
hb_value_t * hb_value_double(double value);
diff --git a/libhb/ports.h b/libhb/ports.h
index b1b478d5f..33bb9c059 100644
--- a/libhb/ports.h
+++ b/libhb/ports.h
@@ -42,21 +42,21 @@ enum hb_cpu_platform
HB_CPU_PLATFORM_INTEL_SKL,
HB_CPU_PLATFORM_INTEL_KBL,
};
-int hb_get_cpu_count();
-int hb_get_cpu_platform();
-const char* hb_get_cpu_name();
-const char* hb_get_cpu_platform_name();
+int hb_get_cpu_count(void);
+int hb_get_cpu_platform(void);
+const char* hb_get_cpu_name(void);
+const char* hb_get_cpu_platform_name(void);
/************************************************************************
* Utils
***********************************************************************/
// provide time in ms
-uint64_t hb_get_date();
+uint64_t hb_get_date(void);
// provide time in us
-uint64_t hb_get_time_us();
+uint64_t hb_get_time_us(void);
void hb_snooze( int delay );
-int hb_platform_init();
+int hb_platform_init(void);
#ifdef SYS_MINGW
typedef struct
diff --git a/libhb/preset.h b/libhb/preset.h
index 61ffaf9b6..b90010553 100644
--- a/libhb/preset.h
+++ b/libhb/preset.h
@@ -186,7 +186,7 @@ int hb_preset_move(const hb_preset_index_t *src_path,
hb_dict_t * hb_presets_get_default(void);
char * hb_presets_get_default_json(void);
hb_preset_index_t * hb_presets_get_default_index(void);
-void hb_presets_clear_default();
+void hb_presets_clear_default(void);
// Package the provided preset (wrap in dict and add version etc)
// and write to json file