Opened 15 years ago

Closed 14 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@…> 15 years ago.
header2.diff (1.7 KB ) - added by David Badia <dbadia@…> 15 years ago.
header3.diff (1.7 KB ) - added by David Badia <dbadia@…> 15 years ago.
header3.diff is new patch for current head

Download all attachments as: .zip

Change History (8)

by Dave Badia <dbadia@…>, 15 years ago

Attachment: header.diff added

comment:1 by Dave Badia <dbadia@…>, 15 years ago

Required by #9395

comment:2 by cpinkham, 15 years ago

Owner: changed from beirdo to cpinkham
Status: newassigned

by David Badia <dbadia@…>, 15 years ago

Attachment: header2.diff added

comment:3 by David Badia <dbadia@…>, 15 years ago

header2.diff is new patch for current head

by David Badia <dbadia@…>, 15 years ago

Attachment: header3.diff added

header3.diff is new patch for current head

comment:4 by Raymond Wagner, 14 years ago

Component: MythTV - MythSystemMythTV - General
Version: UnspecifiedTrunk Head

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

comment:5 by Github, 14 years ago

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.