20#ifndef FREERDP_CHANNEL_GFXREDIR_SERVER_GFXREDIR_H 
   21#define FREERDP_CHANNEL_GFXREDIR_SERVER_GFXREDIR_H 
   23#include <freerdp/channels/gfxredir.h> 
   25#include <freerdp/api.h> 
   26#include <freerdp/types.h> 
   36  typedef UINT (*psGfxRedirOpen)(GfxRedirServerContext* context);
 
   37  typedef UINT (*psGfxRedirClose)(GfxRedirServerContext* context);
 
   39  typedef UINT (*psGfxRedirError)(GfxRedirServerContext* context,
 
   42  typedef UINT (*psGfxRedirGraphicsRedirectionLegacyCaps)(
 
   45  typedef UINT (*psGfxRedirGraphicsRedirectionCapsAdvertise)(
 
   47  typedef UINT (*psGfxRedirGraphicsRedirectionCapsConfirm)(
 
   50  typedef UINT (*psGfxRedirOpenPool)(GfxRedirServerContext* context,
 
   52  typedef UINT (*psGfxRedirClosePool)(GfxRedirServerContext* context,
 
   55  typedef UINT (*psGfxRedirCreateBuffer)(GfxRedirServerContext* context,
 
   57  typedef UINT (*psGfxRedirDestroyBuffer)(GfxRedirServerContext* context,
 
   60  typedef UINT (*psGfxRedirPresentBuffer)(GfxRedirServerContext* context,
 
   62  typedef UINT (*psGfxRedirPresentBufferAck)(
 
   71    psGfxRedirClose Close;
 
   73    psGfxRedirError Error;
 
   75    psGfxRedirGraphicsRedirectionLegacyCaps GraphicsRedirectionLegacyCaps;
 
   77    psGfxRedirGraphicsRedirectionCapsAdvertise GraphicsRedirectionCapsAdvertise;
 
   78    psGfxRedirGraphicsRedirectionCapsConfirm GraphicsRedirectionCapsConfirm;
 
   80    psGfxRedirOpenPool OpenPool;
 
   81    psGfxRedirClosePool ClosePool;
 
   83    psGfxRedirCreateBuffer CreateBuffer;
 
   84    psGfxRedirDestroyBuffer DestroyBuffer;
 
   86    psGfxRedirPresentBuffer PresentBuffer;
 
   87    psGfxRedirPresentBufferAck PresentBufferAck;
 
   89    GfxRedirServerPrivate* priv;
 
   90    rdpContext* rdpcontext;
 
   92    UINT32 confirmedCapsVersion;
 
 
   95  FREERDP_API 
void gfxredir_server_context_free(GfxRedirServerContext* context);
 
   97  WINPR_ATTR_MALLOC(gfxredir_server_context_free, 1)
 
   98  FREERDP_API GfxRedirServerContext* gfxredir_server_context_new(HANDLE vcm);