[mythtv-commits] Ticket #9394: Allow plugins to make system event calls
MythTV
noreply at mythtv.org
Mon Oct 17 04:54:41 UTC 2011
#9394: Allow plugins to make system event calls
-------------------------------------------+----------------------------
Reporter: Dave Badia <dbadia@…> | Owner: cpinkham
Type: Patch - Feature | Status: closed
Priority: minor | Milestone: 0.25
Component: MythTV - General | Version: Trunk Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
-------------------------------------------+----------------------------
Changes (by Github):
* status: assigned => closed
* resolution: => fixed
* milestone: unknown => 0.25
Comment:
Move main system event sender helper routine to MythCoreContext.
This will allow any code with access to MythCoreContext via
the global gCoreContext to be able to send a MythSystemEvent.
This includes plugins and libmythbase.
Instead of this:
#include "mythsystemevent.h"
SendMythSystemEvent("blah");
callers can now do this:
gCoreContext->SendSystemEvent("blah");
Rather than replicating the code in RemoteSendMessage() inside
MythCoreContext, RemoteSendMessage() has been moved into MythCoreContext
as MythCoreContext::SendMessage(). Ditto for RemoteSendEvent()
moving to MythCoreContext::SendEvent(). Both of these were no longer
true 'Remote' methods since they send the message or event locally when
run from the mythbackend application.
Fixes #9394.
NOTE: This commit modifies the binary API verison, so make clean, etc..
Branch: master
Changeset: 1df93f5e4c11194b60208d2da51122e29e176d31
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9394#comment:5>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list