• Mike Gabriel's avatar
    Clear header file namespace separation (<X11/...> vs. <nx-X11/...>). · 433d8186
    Mike Gabriel authored
     In the process of building nxagent against more and more system-wide installed
     X.org libraries, we come to the limit of including structs from this (bundled
     nx-X11) and that (system-wide X.Org) library.
    
     This commit introduces a clear namespace separation of headers provided by
     nx-X11 and headers provided by X.Org. This approach is only temporary as we
     want to drop all nx-X11 bundled libraries from nx-libs.
    
     However, for a while we need to make this separation clear and also ship
     some reduced fake X.Org headers that avoid pulling in libX* and libNX_X*
     symbols at the same time.
    
     This patch has been tested on Debian jessie and unstable and requires no
     overall testing on various distros and distro versions, as we finally will
     drop all libNX_X* libraries and build against X.org's client libs.
    
     For now, this hack eases our development / cleanup process.
    433d8186
Pgn.h 2.11 KB
/**************************************************************************/
/*                                                                        */
/* Copyright (c) 2001, 2007 NoMachine, http://www.nomachine.com/.         */
/*                                                                        */
/* NXCOMPEXT, NX protocol compression and NX extensions to this software  */
/* are copyright of NoMachine. Redistribution and use of the present      */
/* software is allowed according to terms specified in the file LICENSE   */
/* which comes in the source distribution.                                */
/*                                                                        */
/* Check http://www.nomachine.com/licensing.html for applicability.       */
/*                                                                        */
/* NX and NoMachine are trademarks of NoMachine S.r.l.                    */
/*                                                                        */
/* All rigths reserved.                                                   */
/*                                                                        */
/**************************************************************************/

#ifndef Pgn_H
#define Pgn_H

#ifdef __cplusplus
extern "C" {
#endif

#include <nx-X11/X.h>
#include <nx-X11/Xlib.h>
#include <nx-X11/Xmd.h>

#include <png.h> 

extern int PngCompareColorTable(
#if NeedFunctionPrototypes
  NXColorTable*     /* color_table_1 */,
  NXColorTable*     /* color_table_2 */
#endif
);

extern char *PngCompressData(
#if NeedFunctionPrototypes
    XImage*          /* image */,
    int*             /* compressed_size */
#endif
);

int NXCreatePalette16(
#if NeedFunctionPrototypes
    XImage*          /* src_image */,
    NXColorTable*    /* color_table */,
    CARD8*           /* image_index */,
    int              /* nb_max */
#endif
);

int NXCreatePalette32(
#if NeedFunctionPrototypes
    XImage*          /* src_image */,
    NXColorTable*    /* color_table */,
    CARD8*           /* image_index */,
    int              /* nb_max */
#endif
);

#ifdef __cplusplus
}
#endif

#endif /* Pgn_H */