Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
101 user(s) are online (56 user(s) are browsing Forums)

Members: 1
Guests: 100

smf, more...

Headlines

 
  Register To Post  

« 1 (2)
Re: Migration to OS4 Hooks
Not too shy to talk
Not too shy to talk


See User information
@JosDuchIt
Quote:

I find the stuff below, however this does not tell me how my hookfunction gets its SGW argument. ??


The OS calls your Hookfunction with the arguments that are described in the Includes & Autodocs. I don't see your problem with that.

Go to top
Re: Migration to OS4 Hooks
Just can't stay away
Just can't stay away


See User information
@tboeckel
As said before i have a stringgadget (not mine) hook working, now it's just a question that i don'tunderstand fully the documentation as synthesized in my last mail: there is still a gap between the copy of
GTST_EditHook to StringExtend->EditHook >field.
and the production of the SGWork structure needed by the hookfunction
ULONG INTERRUPT SAVEDS TextInHook(struct Hook *hook, struct SGWork *sgw, ULONG *msg)

Thanks for the link
Joseph

Go to top
Re: Migration to OS4 Hooks
Just can't stay away
Just can't stay away


See User information
@ZeroG

Ok i understand how you reason about this.
Obviously i am not working with system doc yet with enough experience.

Joseph

Go to top
Re: Migration to OS4 Hooks
Not too shy to talk
Not too shy to talk


See User information
@JosDuchIt
Quote:

Ok i understand how you reason about this.
Obviously i am not working with system doc yet with enough experience.

Maybe it's my english...
However you should get a copy of the "Amiga ROM Kernel Reference Manual: Libraries 3rd Edition" book, it contains good explanations about Hooks and many other topics.

There is a digital version on this CD:
http://www.vesalia.de/e_developer2.htm


Quote:

and the production of the SGWork structure needed by the hookfunction

The OS builds a valid SGWork structure and passes it to your Hookfunction when it is called by the OS.

Go to top
Re: Migration to OS4 Hooks
Just can't stay away
Just can't stay away


See User information
@ZeroG

I have the Rom kernel Manual (Developer CD V2.1) , but have it only partly on my HD
Do you know by heart in which part it is in?
The problem though is really my inexperience with autodocs and includes.
I am using the the SDK browser and was pretty well organised in finding 'normal' library calls to verify if something had changed (made a search on obsolete and deprecated) These hook calls: it is just 2 that i have to change. So maybe i was a bit lazy. But still GTST_Edithook has no examplehookfunction (search on SGWork) other stringgadgets do. etc.


Joseph

Go to top
Re: Migration to OS4 Hooks
Not too shy to talk
Not too shy to talk


See User information
@JosDuchIt

The right amigaguide is ADCD_2.1:Reference/ROM_Kernel_Manuals/Libraries_Manual.

Hooks in general are covert in chapter 37 "Utility Library".

EditHooks for intuition stringgadgets are covert in chapter 5 "Intuition Gadgets" -> "String Gadget Type" -> "Custom String Editing". It includes an example for edithooks with the filename strhooks.c.

Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project