FreeRDP
xf_utils.h File Reference
#include <winpr/wlog.h>
#include <winpr/wtypes.h>
#include <X11/Xlib.h>
#include "xfreerdp.h"
This graph shows which files directly or indirectly include this file:

Macros

#define X_GET_ATOM_VAR_NAME(x)   #x
 
#define Safe_XGetAtomName(log, display, atom)    Safe_XGetAtomNameEx((log), (display), (atom), X_GET_ATOM_VAR_NAME(atom))
 
#define LogTagAndXGetWindowProperty(tag, display, w, property, long_offset, long_length, delete, req_type, actual_type_return, actual_format_return, nitems_return, bytes_after_return, prop_return)
 
#define LogDynAndXGetWindowProperty(log, display, w, property, long_offset, long_length, delete, req_type, actual_type_return, actual_format_return, nitems_return, bytes_after_return, prop_return)
 
#define LogTagAndXChangeProperty(tag, display, w, property, type, format, mode, data, nelements)
 
#define LogDynAndXChangeProperty(log, display, w, property, type, format, mode, data, nelements)
 
#define LogTagAndXDeleteProperty(tag, display, w, property)    LogTagAndXDeleteProperty_ex((tag), __FILE__, __func__, __LINE__, (display), (w), (property))
 
#define LogDynAndXDeleteProperty(log, display, w, property)    LogDynAndXDeleteProperty_ex((log), __FILE__, __func__, __LINE__, (display), (w), (property))
 
#define LogTagAndXConvertSelection(tag, display, selection, target, property, requestor, time)
 
#define LogDynAndXConvertSelection(log, display, selection, target, property, requestor, time)    LogDynAndXConvertSelection_ex((log), __FILE__, __func__, __LINE__, (display), (w), (property))
 

Typedefs

typedef BOOL(* fn_action_script_run) (xfContext *xfc, const char *buffer, size_t size, void *user, const char *what, const char *arg)
 

Functions

char * Safe_XGetAtomNameEx (wLog *log, Display *display, Atom atom, const char *varname)
 
Atom Logging_XInternAtom (wLog *log, Display *display, _Xconst char *atom_name, Bool only_if_exists)
 
BOOL run_action_script (xfContext *xfc, const char *what, const char *arg, fn_action_script_run fkt, void *user)
 
int LogTagAndXGetWindowProperty_ex (const char *tag, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return)
 
int LogDynAndXGetWindowProperty_ex (wLog *log, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return)
 
int LogTagAndXChangeProperty_ex (const char *tag, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property, Atom type, int format, int mode, _Xconst unsigned char *data, int nelements)
 
int LogDynAndXChangeProperty_ex (wLog *log, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property, Atom type, int format, int mode, _Xconst unsigned char *data, int nelements)
 
int LogTagAndXDeleteProperty_ex (const char *tag, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property)
 
int LogDynAndXDeleteProperty_ex (wLog *log, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property)
 
int LogTagAndXConvertSelection_ex (const char *tag, const char *file, const char *fkt, size_t line, Display *display, Atom selection, Atom target, Atom property, Window requestor, Time time)
 
int LogDynAndXConvertSelection_ex (wLog *log, const char *file, const char *fkt, size_t line, Display *display, Atom selection, Atom target, Atom property, Window requestor, Time time)
 
BOOL IsGnome (void)
 

Macro Definition Documentation

◆ LogDynAndXChangeProperty

#define LogDynAndXChangeProperty (   log,
  display,
  w,
  property,
  type,
  format,
  mode,
  data,
  nelements 
)
Value:
LogDynAndXChangeProperty_ex((log), __FILE__, __func__, __LINE__, (display), (w), (property), \
(type), (format), (mode), (data), (nelements))
audin log
Definition: audin_main.c:1024
audin data
Definition: audin_main.c:1025
int LogDynAndXChangeProperty_ex(wLog *log, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property, Atom type, int format, int mode, _Xconst unsigned char *data, int nelements)

◆ LogDynAndXConvertSelection

#define LogDynAndXConvertSelection (   log,
  display,
  selection,
  target,
  property,
  requestor,
  time 
)     LogDynAndXConvertSelection_ex((log), __FILE__, __func__, __LINE__, (display), (w), (property))

◆ LogDynAndXDeleteProperty

#define LogDynAndXDeleteProperty (   log,
  display,
  w,
  property 
)     LogDynAndXDeleteProperty_ex((log), __FILE__, __func__, __LINE__, (display), (w), (property))

◆ LogDynAndXGetWindowProperty

#define LogDynAndXGetWindowProperty (   log,
  display,
  w,
  property,
  long_offset,
  long_length,
  delete,
  req_type,
  actual_type_return,
  actual_format_return,
  nitems_return,
  bytes_after_return,
  prop_return 
)
Value:
LogDynAndXGetWindowProperty_ex((log), __FILE__, __func__, __LINE__, (display), (w), \
(property), (long_offset), (long_length), (delete), (req_type), \
(actual_type_return), (actual_format_return), (nitems_return), \
(bytes_after_return), (prop_return))
int LogDynAndXGetWindowProperty_ex(wLog *log, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return)

◆ LogTagAndXChangeProperty

#define LogTagAndXChangeProperty (   tag,
  display,
  w,
  property,
  type,
  format,
  mode,
  data,
  nelements 
)
Value:
LogTagAndXChangeProperty_ex((tag), __FILE__, __func__, __LINE__, (display), (w), (property), \
(type), (format), (mode), (data), (nelements))
int LogTagAndXChangeProperty_ex(const char *tag, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property, Atom type, int format, int mode, _Xconst unsigned char *data, int nelements)

◆ LogTagAndXConvertSelection

#define LogTagAndXConvertSelection (   tag,
  display,
  selection,
  target,
  property,
  requestor,
  time 
)
Value:
LogTagAndXConvertSelection_ex((tag), __FILE__, __func__, __LINE__, (display), (selection), \
(target), (property), (requestor), (time))
int LogTagAndXConvertSelection_ex(const char *tag, const char *file, const char *fkt, size_t line, Display *display, Atom selection, Atom target, Atom property, Window requestor, Time time)
Definition: xf_utils.c:108

◆ LogTagAndXDeleteProperty

#define LogTagAndXDeleteProperty (   tag,
  display,
  w,
  property 
)     LogTagAndXDeleteProperty_ex((tag), __FILE__, __func__, __LINE__, (display), (w), (property))

◆ LogTagAndXGetWindowProperty

#define LogTagAndXGetWindowProperty (   tag,
  display,
  w,
  property,
  long_offset,
  long_length,
  delete,
  req_type,
  actual_type_return,
  actual_format_return,
  nitems_return,
  bytes_after_return,
  prop_return 
)
Value:
LogTagAndXGetWindowProperty_ex((tag), __FILE__, __func__, __LINE__, (display), (w), \
(property), (long_offset), (long_length), (delete), (req_type), \
(actual_type_return), (actual_format_return), (nitems_return), \
(bytes_after_return), (prop_return))
int LogTagAndXGetWindowProperty_ex(const char *tag, const char *file, const char *fkt, size_t line, Display *display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return)

◆ Safe_XGetAtomName

#define Safe_XGetAtomName (   log,
  display,
  atom 
)     Safe_XGetAtomNameEx((log), (display), (atom), X_GET_ATOM_VAR_NAME(atom))

◆ X_GET_ATOM_VAR_NAME

#define X_GET_ATOM_VAR_NAME (   x)    #x

FreeRDP: A Remote Desktop Protocol Implementation X11 helper utilities

Copyright 2023 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyringht 2023 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Typedef Documentation

◆ fn_action_script_run

typedef BOOL(* fn_action_script_run) (xfContext *xfc, const char *buffer, size_t size, void *user, const char *what, const char *arg)

Function Documentation

◆ IsGnome()

BOOL IsGnome ( void  )
Here is the caller graph for this function:

◆ LogDynAndXChangeProperty_ex()

int LogDynAndXChangeProperty_ex ( wLog *  log,
const char *  file,
const char *  fkt,
size_t  line,
Display *  display,
Window  w,
Atom  property,
Atom  type,
int  format,
int  mode,
_Xconst unsigned char *  data,
int  nelements 
)

◆ LogDynAndXConvertSelection_ex()

int LogDynAndXConvertSelection_ex ( wLog *  log,
const char *  file,
const char *  fkt,
size_t  line,
Display *  display,
Atom  selection,
Atom  target,
Atom  property,
Window  requestor,
Time  time 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogDynAndXDeleteProperty_ex()

int LogDynAndXDeleteProperty_ex ( wLog *  log,
const char *  file,
const char *  fkt,
size_t  line,
Display *  display,
Window  w,
Atom  property 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogDynAndXGetWindowProperty_ex()

int LogDynAndXGetWindowProperty_ex ( wLog *  log,
const char *  file,
const char *  fkt,
size_t  line,
Display *  display,
Window  w,
Atom  property,
long  long_offset,
long  long_length,
Bool  delete,
Atom  req_type,
Atom *  actual_type_return,
int *  actual_format_return,
unsigned long *  nitems_return,
unsigned long *  bytes_after_return,
unsigned char **  prop_return 
)

◆ Logging_XInternAtom()

Atom Logging_XInternAtom ( wLog *  log,
Display *  display,
_Xconst char *  atom_name,
Bool  only_if_exists 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogTagAndXChangeProperty_ex()

int LogTagAndXChangeProperty_ex ( const char *  tag,
const char *  file,
const char *  fkt,
size_t  line,
Display *  display,
Window  w,
Atom  property,
Atom  type,
int  format,
int  mode,
_Xconst unsigned char *  data,
int  nelements 
)

◆ LogTagAndXConvertSelection_ex()

int LogTagAndXConvertSelection_ex ( const char *  tag,
const char *  file,
const char *  fkt,
size_t  line,
Display *  display,
Atom  selection,
Atom  target,
Atom  property,
Window  requestor,
Time  time 
)
Here is the call graph for this function:

◆ LogTagAndXDeleteProperty_ex()

int LogTagAndXDeleteProperty_ex ( const char *  tag,
const char *  file,
const char *  fkt,
size_t  line,
Display *  display,
Window  w,
Atom  property 
)
Here is the call graph for this function:

◆ LogTagAndXGetWindowProperty_ex()

int LogTagAndXGetWindowProperty_ex ( const char *  tag,
const char *  file,
const char *  fkt,
size_t  line,
Display *  display,
Window  w,
Atom  property,
long  long_offset,
long  long_length,
Bool  delete,
Atom  req_type,
Atom *  actual_type_return,
int *  actual_format_return,
unsigned long *  nitems_return,
unsigned long *  bytes_after_return,
unsigned char **  prop_return 
)

◆ run_action_script()

BOOL run_action_script ( xfContext *  xfc,
const char *  what,
const char *  arg,
fn_action_script_run  fkt,
void *  user 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Safe_XGetAtomNameEx()

char* Safe_XGetAtomNameEx ( wLog *  log,
Display *  display,
Atom  atom,
const char *  varname 
)