Opened 9 years ago

Closed 8 years ago

#9394 closed Patch - Feature (fixed)

Allow plugins to make system event calls

Reported by: Dave Badia <dbadia@…> Owned by: cpinkham
Priority: minor Milestone: 0.25
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Install extra header files so plugins can trigger system events

Attachments (3)

header.diff (1.1 KB) - added by Dave Badia <dbadia@…> 9 years ago.
header2.diff (1.7 KB) - added by David Badia <dbadia@…> 9 years ago.
header3.diff (1.7 KB) - added by David Badia <dbadia@…> 9 years ago.
header3.diff is new patch for current head

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by Dave Badia <dbadia@…>

Attachment: header.diff added

comment:1 Changed 9 years ago by Dave Badia <dbadia@…>

Required by #9395

comment:2 Changed 9 years ago by cpinkham

Owner: changed from beirdo to cpinkham
Status: newassigned

Changed 9 years ago by David Badia <dbadia@…>

Attachment: header2.diff added

comment:3 Changed 9 years ago by David Badia <dbadia@…>

header2.diff is new patch for current head

Changed 9 years ago by David Badia <dbadia@…>

Attachment: header3.diff added

header3.diff is new patch for current head

comment:4 Changed 8 years ago by Raymond Wagner

Component: MythTV - MythSystemMythTV - General
Version: UnspecifiedTrunk Head

The 'mythsystem' component is for the routines used to manage external executables.

comment:5 Changed 8 years ago by Github

Milestone: unknown0.25
Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.