"Fossies" - the Fresh Open Source Software Archive

Member "xorriso-1.5.4/libburn/libdax_sigmgr.h" (30 Jan 2021, 1863 Bytes) of package /linux/misc/xorriso-1.5.4.pl02.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "libdax_sigmgr.h" see the Fossies "Dox" file reference documentation.

    1 
    2 /* libdax_sigmgr
    3    Signal management facility of libdax and libburn.
    4    Copyright (C) 2006 Thomas Schmitt <scdbackup@gmx.net>, provided under GPLv2+
    5 */
    6 
    7 
    8 /*
    9   *Never* set this macro outside libdax_sigmgr.c !
   10   The entrails of this facility are not to be seen by
   11   the other library components or the applications.
   12 */
   13 #ifdef LIBDAX_SIGMGR_H_INTERNAL
   14 
   15 /** Layout of an application provided cleanup function using an application
   16     provided handle as first argument and the signal number as second
   17     argument. The third argument is a flag bit field with no defined bits yet.
   18     If the handler returns -2 then it has delegated exit() to some other
   19     instance and the Cleanup handler shall return rather than exit.
   20 */
   21 typedef int (*libdax_sigmgr_handler_t)(void *, int, int);
   22 
   23 
   24 struct libdax_sigmgr {
   25 
   26  /* The thread to be handled by this handler */
   27  pid_t control_pid;
   28 
   29  /* The libdax api objects to be handled */
   30  struct libdax_api *api_chain;
   31 
   32  char msg[4096];
   33  int exiting;
   34 
   35 };
   36 
   37 
   38 #endif /* LIBDAX_SIGMGR_H_INTERNAL */
   39 
   40 
   41 #ifndef LIBDAX_SIGMGR_H_INCLUDED
   42 #define LIBDAX_SIGMGR_H_INCLUDED 1
   43 
   44 
   45 #ifndef LIBDAX_SIGMGR_H_INTERNAL
   46 
   47                           /* Public Opaque Handles */
   48 
   49 /** A pointer to this is a opaque handle to a signal handling manager */
   50 struct libdax_sigmgr;
   51 
   52 
   53 #endif /* ! LIBDAX_SIGMGR_H_INTERNAL */
   54 
   55 
   56                             /* Public Macros */
   57 
   58 
   59                             /* Public Functions */
   60 
   61 
   62 
   63                /* Calls initiated from inside libdax/libburn */
   64 
   65 
   66      /* Calls from applications (to be forwarded by libdax/libburn) */
   67 
   68 
   69 
   70 #ifdef LIDBAX_SIGMGR________________
   71 
   72 
   73 -- place documentation text here ---
   74 
   75 
   76 #endif /* LIDBAX_SIGMGR_________________ */
   77 
   78 
   79 
   80 #ifdef LIBDAX_SIGMGR_H_INTERNAL
   81 
   82                              /* Internal Functions */
   83 
   84 #endif /* LIBDAX_SIGMGR_H_INTERNAL */
   85 
   86 
   87 #endif /* ! LIBDAX_SIGMGR_H_INCLUDED */
   88