[mythtv] puzzles about the MythHello plugin source code?----about gContext ???

brian turbo at talstar.com
Thu Mar 15 00:34:17 UTC 2007


Xi Jiarong wrote:
> the sample plugin: How to build MythHello plugin: 
> http://www.mythtv.org/wiki/index.php/Building_Plugins:HelloMyth
> I am puzzled about the gContext??? what's this variable?
> How to understand the following (1)(2)(3)(4) four lines??
> Thanks!
> 
> int mythplugin_run (void)
> {
> (1) gContext->addCurrentLocation("mythhello");
> 
> (2) MythHello hello(gContext->GetMainWindow(), "hello", "hello-");
> (3) hello.exec();
> 
> (4) gContext->removeCurrentLocation();
> 
> return 1;
> }

   Okay...  I've seen you on several forums now, asking the same (sorts 
of) question(s):

   1) This question (and all the other questions you've posed here and 
elsewhere) is not a "MythTV development" question, and thus doesn't 
really belong on this list.

   2) In this specific case, this isn't even a "MythTV Users" question. 
  It's really more of a "Programming 101" question.  I, once again, 
suggest that you buy some books and/or take a few instructional classes 
on programming fundamentals -- that would be your best start.  I'm not 
usually all that quick to judgment, but I'm becoming more and more 
convinced that you're not at the level to dive into development or 
maintenance on a project the size and scope of MythTV.

    3) Please stop posting these sorts of questions on this list.

    Thanks.


More information about the mythtv-dev mailing list