Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and use it instead of mythexp.h MPUBLIC -> MPLUGIN_PUBLIC or mythbaseexp.h MBASE_PUBLIC -> MPLUGIN_PUBLIC
- Loading branch information
1 parent
67b97ab
commit 67fdc4d
Showing
14 changed files
with
52 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#ifndef MYTHPLUGINAPI_H_ | ||
#define MYTHPLUGINAPI_H_ | ||
|
||
#include "mythbaseexp.h" | ||
#include "mythpluginexport.h" | ||
#include "mythplugin.h" // for MythPluginType | ||
|
||
extern "C" { | ||
MBASE_PUBLIC int mythplugin_init(const char *libversion); | ||
MBASE_PUBLIC int mythplugin_run(); | ||
MBASE_PUBLIC int mythplugin_config(); | ||
MBASE_PUBLIC MythPluginType mythplugin_type(); | ||
MBASE_PUBLIC void mythplugin_destroy(); | ||
extern "C++" | ||
{ | ||
MPLUGIN_PUBLIC int mythplugin_init(const char *libversion); | ||
MPLUGIN_PUBLIC int mythplugin_run(); | ||
MPLUGIN_PUBLIC int mythplugin_config(); | ||
MPLUGIN_PUBLIC MythPluginType mythplugin_type(); | ||
MPLUGIN_PUBLIC void mythplugin_destroy(); | ||
|
||
} | ||
|
||
#endif // MYTHPLUGINAPI_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef MYTH_PLUGIN_EXPORT_H_ | ||
#define MYTH_PLUGIN_EXPORT_H_ | ||
|
||
#include <QtGlobal> | ||
|
||
#ifdef MPLUGIN_API | ||
# define MPLUGIN_PUBLIC Q_DECL_EXPORT | ||
#else | ||
# define MPLUGIN_PUBLIC Q_DECL_IMPORT | ||
#endif | ||
|
||
#endif // MYTH_PLUGIN_EXPORT_H_ |
67fdc4d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the plugins load OK for you after this commit?
I'm seeing these errors
67fdc4d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
extern "C++"
statement needs to beextern "C"
. MythTV can't find the mythplugin_init symbol because its been mangled into C++ form.