BFD_INIT_MAGIC
[deliverable/binutils-gdb.git] / bfd / init.c
index ec6354e8c9ed3d05d9a06b4e00532d33d2068234..ad109819314e00d83debd21735fdfa85f675211a 100644 (file)
@@ -38,17 +38,24 @@ FUNCTION
        bfd_init
 
 SYNOPSIS
        bfd_init
 
 SYNOPSIS
-       void bfd_init (void);
+       size_t bfd_init (void);
 
 DESCRIPTION
        This routine must be called before any other BFD function to
        initialize magical internal data structures.
 
 DESCRIPTION
        This routine must be called before any other BFD function to
        initialize magical internal data structures.
+       Returns a magic number, which may be used to check
+       that the bfd library is configured as expected by users.
+.
+.{* Value returned by bfd_init.  *}
+.
+.#define BFD_INIT_MAGIC (sizeof (struct bfd_section))
 */
 
 /* Actually, there is currently nothing for this function to do.
    However, someday it may be needed, so keep it around.  */
 
 */
 
 /* Actually, there is currently nothing for this function to do.
    However, someday it may be needed, so keep it around.  */
 
-void
+size_t
 bfd_init (void)
 {
 bfd_init (void)
 {
+  return BFD_INIT_MAGIC;
 }
 }
This page took 0.037936 seconds and 4 git commands to generate.