"Fossies" - the Fresh Open Source Software Archive

Member "feh-3.4.1/src/wallpaper.h" (29 May 2020, 2271 Bytes) of package /linux/privat/feh-3.4.1.tar.bz2:


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 "wallpaper.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.4_vs_3.4.1.

    1 /* wallpaper.h
    2 
    3 Copyright (C) 1999-2003 Tom Gilbert.
    4 Copyright (C) 2010-2020 Daniel Friesel.
    5 
    6 Permission is hereby granted, free of charge, to any person obtaining a copy
    7 of this software and associated documentation files (the "Software"), to
    8 deal in the Software without restriction, including without limitation the
    9 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   10 sell copies of the Software, and to permit persons to whom the Software is
   11 furnished to do so, subject to the following conditions:
   12 
   13 The above copyright notice and this permission notice shall be included in
   14 all copies of the Software and its documentation and acknowledgment shall be
   15 given in the documentation and software packages that this Software was
   16 used.
   17 
   18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
   21 THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
   22 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
   23 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   24 
   25 */
   26 
   27 #ifndef WALLPAPER_H
   28 #define WALLPAPER_H
   29 
   30 #include <X11/Xfuncproto.h>
   31 #include <X11/Intrinsic.h>  /* Xlib, Xutil, Xresource, Xfuncproto */
   32 
   33 #define IPC_TIMEOUT    ((char *) 1)
   34 #define IPC_FAKE       ((char *) 2) /* Faked IPC */
   35 
   36 #define enl_ipc_sync()  do {                                           \
   37        char *reply = enl_send_and_wait("nop");                         \
   38        if ((reply != IPC_FAKE) && (reply != IPC_TIMEOUT))              \
   39          free(reply);                                                  \
   40    } while (0)
   41 
   42 extern Window ipc_win;
   43 extern Atom ipc_atom;
   44 
   45 _XFUNCPROTOBEGIN extern Window enl_ipc_get_win(void);
   46 extern void enl_ipc_send(char *);
   47 extern char *enl_wait_for_reply(void);
   48 extern char *enl_ipc_get(const char *);
   49 extern char *enl_send_and_wait(char *);
   50 extern void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
   51         int fill, int desktop, int for_screen);
   52 extern int feh_wm_get_num_desks(void);
   53 extern signed char feh_wm_get_wm_is_e(void);
   54 void feh_wm_set_bg_filelist(unsigned char bgmode);
   55 
   56 _XFUNCPROTOEND
   57 #endif