From 4d52736e3118cd0537f032c9c2874a1b29627b9c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 28 Jul 2005 22:32:58 +0000 Subject: [PATCH] Add a few missing extern for function prototypes. --- libdwfl/ChangeLog | 2 ++ libdwfl/libdwfl.h | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 398676324..70fbf6284 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,5 +1,7 @@ 2005-07-28 Ulrich Drepper + * libdwfl.h: Add a few missing extern for function prototypes. + * libdwfl_crc32.c: New file. * libdwfl_crc32_file.c: New file. * libdwflP.h: Declare the new functions. diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index ad74f86a3..c319d19e5 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -49,10 +49,10 @@ typedef struct /* Start a new session with the library. */ -Dwfl *dwfl_begin (const Dwfl_Callbacks *callbacks); +extern Dwfl *dwfl_begin (const Dwfl_Callbacks *callbacks); /* End a session. */ -void dwfl_end (Dwfl *); +extern void dwfl_end (Dwfl *); /* Return error code of last failing function call. This value is kept separately for each thread. */ @@ -173,14 +173,14 @@ extern int dwfl_linux_kernel_report_modules (Dwfl *dwfl); /* Call dwfl_report_module for each file mapped into the address space of PID. Returns zero on success, -1 if dwfl_report_module failed, or an errno code if opening the kernel binary failed. */ -int dwfl_linux_proc_report (Dwfl *dwfl, pid_t pid); +extern int dwfl_linux_proc_report (Dwfl *dwfl, pid_t pid); /* Trivial find_elf callback for use with dwfl_linux_proc_report. This uses the module name as a file name directly and tries to open it if it begin with a slash, or handles the magic string "[vdso]". */ -int dwfl_linux_proc_find_elf (Dwfl_Module *mod, void **userdata, - const char *module_name, Dwarf_Addr base, - char **file_name, Elf **); +extern int dwfl_linux_proc_find_elf (Dwfl_Module *mod, void **userdata, + const char *module_name, Dwarf_Addr base, + char **file_name, Elf **); /* Standard argument parsing for using a standard callback set. */ struct argp; -- 2.47.2