From 1884f6ef05673941c4db6bc89a8850c167905eff Mon Sep 17 00:00:00 2001 From: Oneric Date: Fri, 21 Oct 2022 00:47:17 +0200 Subject: refactor: prefix all internal API with ass_ If static libass is linked into a binary defining functions of the same name there will be issues. To avoid this use an ass_ prefix for namespacing. Before this commit we already did this for most but not yet all internal API. read_file is renamed to ass_load_file as ass_read_file already exists as a public API function. All other functions are simply prefixed with ass_. Fixes: https://github.com/libass/libass/issues/222 Fixes: https://github.com/libass/libass/issues/654 --- libass/ass_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass/ass_utils.h') diff --git a/libass/ass_utils.h b/libass/ass_utils.h index c9e9b7c..7d68326 100644 --- a/libass/ass_utils.h +++ b/libass/ass_utils.h @@ -103,7 +103,7 @@ void ass_utf16be_to_utf8(char *dst, size_t dst_size, uint8_t *src, size_t src_si __attribute__ ((format (printf, 3, 4))) #endif void ass_msg(ASS_Library *priv, int lvl, const char *fmt, ...); -int lookup_style(ASS_Track *track, char *name); +int ass_lookup_style(ASS_Track *track, char *name); /* defined in ass_strtod.c */ double ass_strtod(const char *string, char **endPtr); -- cgit v1.2.3