Page 5 of 6

Re: [App] libLogChannel B/D/E/F/H

Posted: Mon Jan 18, 2016 11:51 am
by wluczykijwf
sectroyer wrote:I do NOT understand :) How do you "use _ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram" ? :) Paste code :)
It is a mental shortcut :D .
Of course I use this hook in libLogChannel. :)
edit:
Of course I use this call function in libLogChannel. :D

Re: [App] libLogChannel B/D/E/F/H

Posted: Mon Jan 18, 2016 11:52 am
by zoelechat
Nevermind wluczykijwf, sectroyer never admits his own bugs, but love to shout other's ones :D
Btw, don't talk about "hook", you don't hook: you just call function, and he's now playing on that :)

Re: [App] libLogChannel B/D/E/F/H

Posted: Mon Jan 18, 2016 12:05 pm
by wluczykijwf
zoelechat wrote:Nevermind wluczykijwf, sectroyer never admits his own bugs, but love to shout other's ones :D
OK. Funny. :)
I still fear for my English, and I thought that he's didn't understand to me.
zoelechat wrote:Btw, don't talk about "hook", you don't hook: you just call function, and he's now playing on that :)
OK, thanks. :)

Re: [App] libLogChannel B/D/E/F/H

Posted: Mon Jan 18, 2016 12:53 pm
by sectroyer
if you call function, it works. That's what I use in libRecTitle and works as a charm :) Check it if you want :)

Re: [App] libLogChannel B/D/E/F/H

Posted: Mon Jan 18, 2016 1:23 pm
by wluczykijwf
sectroyer wrote:if you call function, it works. That's what I use in libRecTitle and works as a charm :) Check it if you want :)
OK. I will check this lib. Thanks.

Re: [App] libLogChannel B/D/E/F/H

Posted: Tue Jan 19, 2016 9:57 am
by wluczykijwf
With the analysis of your (@zoelechat & @sectroyer) libraries that if I just want to get some information from TV by call function I don't need to use this:
SpoilerShow

Code: Select all

if(dyn_sym_tab_init(h, dyn_hook_fn_tab, ARRAYSIZE(dyn_hook_fn_tab)) >= 0)
{
	set_hooks(LIB_HOOKS, ARRAYSIZE(LIB_HOOKS));
	_hooked = 1;
}
or do I've?

Re: [App] libLogChannel B/D/E/F/H

Posted: Tue Jan 19, 2016 10:14 am
by zoelechat
That part init hooks, you don't need it as long as lib is not resident one.

Re: [App] libLogChannel B/D/E/F/H

Posted: Tue Jan 19, 2016 10:43 am
by wluczykijwf
zoelechat wrote:That part init hooks, you don't need it as long as lib is not resident one.
OK. Thanks. Now I seems to understand your's structure :).
Is it possible that when the function (_ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram) is called from your libLogChannel then function will not be dispatch from the libEPG by @sectroyer that resides on TV?
That would explain the lack of information about the title.

Re: [App] libLogChannel B/D/E/F/H

Posted: Tue Jan 19, 2016 11:10 am
by zoelechat
No, once libEPG is loaded, called function is mandatorily the hooked one from it instead of original TV one. That's the principle of hook :)

Re: [App] libLogChannel B/D/E/F/H

Posted: Tue Jan 19, 2016 1:02 pm
by wluczykijwf
So any the function (_ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram) calls (on TV, on other libs) should make a call to this function hacked by libEPG?