/*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
/*
Client side XIA extension code.
One can XSolarisIASetProceesInfo or XIASolarisGetProceesInfo.
Currently only passing process ids is supported.
Of course QueryVersion and QueryExtension are supported.
No support for error messages is involved. Yet. If this
interface becomes public this will need to be rewhacked
*/
/* THIS IS NOT AN X CONSORTIUM STANDARD */
#define NEED_EVENTS
#define NEED_REPLIES
#if !defined(lint)
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#endif
#include <unistd.h>
#include <stdio.h>
#ifdef IA_USE_EXTUTIL
#else
typedef struct _IAExtDisplayInfo {
if (!XextHasExtension(i)) { \
/* XMissingExtension (dpy, ia_extension_name); */ \
return val; \
}
#endif /* IA_USE_EXTUTIL */
/*****************************************************************************
* *
* private utility routines *
* *
*****************************************************************************/
#ifdef IA_USE_EXTUTIL
static int close_display();
static char *error_string();
NULL, /* create_gc */
NULL, /* copy_gc */
NULL, /* flush_gc */
NULL, /* free_gc */
NULL, /* create_font */
NULL, /* free_font */
close_display, /* close_display */
NULL, /* wire_to_event */
NULL, /* event_to_wire */
NULL, /* error */
error_string, /* error_string */
};
#endif
static const char *ia_error_list[] = {
"BadPid", /* Bad process id */
};
#ifdef IA_USE_EXTUTIL
#else
{
} else {
}
} else {
}
}
return Success;
}
{
char tmp[256];
return buf;
}
return NULL;
}
{
return di;
}
}
/* Did not find on list, add new entry */
return NULL;
}
return di;
}
#define find_display ia_find_display
#endif /* IA_USE_EXTUTIL */
/*****************************************************************************
* *
* public Interactive Extension routines *
* *
*****************************************************************************/
)
{
if (XextHasExtension(info)) {
return True;
} else {
return False;
}
}
int *majorVersion,
int *minorVersion
)
{
SyncHandle();
return False;
}
SyncHandle();
return True;
}
unsigned char **Pinfo,
int *count
)
{
long length = 0;
SyncHandle();
return False;
}
SyncHandle();
return False; /* not Success */
}
SyncHandle();
return True;
}
unsigned char *Pinfo,
)
{
unsigned long length;
if (flags & INTERACTIVE_INFO) {
}
if (flags & INTERACTIVE_SETTING) {
}
SyncHandle();
return True;
}