Operating System - HP-UX
1755670 Members
5088 Online
108837 Solutions
New Discussion юеВ

Re: How to make x server load my extension

 
wallice wang
Occasional Advisor

How to make x server load my extension

Hi,I use hp-ux11 on 9000. My problem is how to make X server load my extension when starting. Also, Should I support a entry in my extension for X server's access?

Thanks
Wallice
8 REPLIES 8
Alex Glennie
Honored Contributor

Re: How to make x server load my extension

Wallice,

I know a bit about X but am unsure what you mean by "extension" ? Could you put some more "meat on the bones" ?

X has modules/extensions in /usr/lib/X11/modules/extensions/hp ?
wallice wang
Occasional Advisor

Re: How to make x server load my extension

Thank Alex,

As you know, when X server start,it will load some extensions such as /usr/lib/X11/Xserver/modules/extensions/hp/sync.1. Now i want to build a dll like sync.1, i don't how to make X server to load my dll while starting X server, or i should config some file to indicate what i want X server to load? Could you give any idea?

Thanks

Alex Glennie
Honored Contributor

Re: How to make x server load my extension

good question ...... honest answer is I don't know but someone from the graphics Labs or similar in HP maybe able to help you on this ...... I can make them aware of this post but can't promise that they will reply as this is a voluntary site and they are usually very busy ......

keep an eye on this post though .
Charles Slivkoff
Respected Contributor

Re: How to make x server load my extension

The only API that HP provides for adding modules to the X server is for input devices. This API was provided with the A/ANSI C Dev Kit as part of X11MotifDevKit.X11R5-PRG on 10.20. Since this doesn't exist on 11.0, you'll have to get this from a 10.20 box.



Can you please explain further exactly what you are trying to accomplish?



wallice wang
Occasional Advisor

Re: How to make x server load my extension

Thank Chuck,

I want to record some operations of X server, such as drawing a point or a line. I plan to make such a extension,it will be loaded when X server startup, i can catch some X server's actions by it.

Any advice is welcome.
Alex Glennie
Honored Contributor

Re: How to make x server load my extension

When you say record do you mean as in moving images - mpegs or similar or do you mean the actual X protocol ?

If the later :

XSCOPE -- a program to monitor X11/Client conversations
XSCOPE is a program to monitor the connections between the X11 window
server and a client program. xscope runs as a separate process. By
adjusting the host and/or display number that a X11 client attaches
to, the client is attached to xscope instead of X11. xscope attaches
to X11 as if it were the client. All bytes from the client are sent
to xscope which passes them on to X11; All bytes from X11 are sent to
xscope which sends them on to the client. xscope is transparent to
the client and X11.
In addition to passing characters back and forth, xscope will print
information about this traffic on stdout, giving performance and
debugging information for an X11 client and server.

maybe of use ? If you need a copy I'm sure I could find one ?
wallice wang
Occasional Advisor

Re: How to make x server load my extension

Hi Alex,

Much appreciate for your help.
I think what you say is different with what i want. I want to record "element sentence" of X server,it seems xscope has to record too many message. xscope is a separate process, it record message by listening communication between X11 and client. I wish to make a dll as part of X server,not a separate process.

Thanks
Charles Slivkoff
Respected Contributor

Re: How to make x server load my extension

You can not write your own extension without a special arrangement (read: $$$$) with the HP lab that own the HP-UX X server.



The RECORD extension is available. Perhaps you can use it.