Fixed xine scope plugin functionality with xine 1.2.10. #3

Merged
MicheleC merged 1 commits from issue/scope-plugin into master 4 years ago
Owner

As per title. Please test in distros with xine < 1.2.10.

The plugin is built and used but not sure of what it does... I can't see any visual feedback when playing a song.

As per title. Please test in distros with xine < 1.2.10. The plugin is built and used but not sure of what it does... I can't see any visual feedback when playing a song.
MicheleC added the PR/rfc label 4 years ago
MicheleC requested review from SlavekB 4 years ago
MicheleC added this to the R14.0.9 release milestone 4 years ago
SlavekB reviewed 4 years ago
SlavekB left a comment
Owner

Build done successfully on Wheezy. Only there is a question to consider – see the comment.

Build done successfully on Wheezy. Only there is a question to consider – see the comment.
#include "slider.h"
#include "theStream.h"
#include "xineEngine.h"
extern "C"
Owner

Would it make sense to move extern "C" inside xineScope.h?

Would it make sense to move `extern "C"` inside `xineScope.h`?
Poster
Owner

I did tried that already and this is what I got

In file included from /home/tde_src/2_build/build/applications/codeine/src/app/xineScope.c:7:
/home/tde_src/2_build/build/applications/codeine/src/app/xineScope.h:16:8: error: expected identifier or ‘(’ before string constant
   16 | extern "C"

No evident syntax error in the code (like missing parenthesis).

xineScope.c is a C file. xineEngine.cpp is a C++ file. That is where the problem comes from.

An alternative solution would be to transform the scope file to a C++ file.

I did tried that already and this is what I got ``` In file included from /home/tde_src/2_build/build/applications/codeine/src/app/xineScope.c:7: /home/tde_src/2_build/build/applications/codeine/src/app/xineScope.h:16:8: error: expected identifier or ‘(’ before string constant 16 | extern "C" ``` No evident syntax error in the code (like missing parenthesis). xineScope.c is a C file. xineEngine.cpp is a C++ file. That is where the problem comes from. An alternative solution would be to transform the scope file to a C++ file.
Owner

There will be necessary:

#ifdef __cplusplus
extern "C"
{
#endif
#include <xine/xine_plugin.h>
#ifdef __cplusplus
}
#endif
There will be necessary: ``` #ifdef __cplusplus extern "C" { #endif #include <xine/xine_plugin.h> #ifdef __cplusplus } #endif ```
Poster
Owner

nice, thanks Slavek!

nice, thanks Slavek!
#include <sys/types.h>
#include <xine/metronom.h>
#include <xine/xine_plugin.h>
Owner

If extern "C" were used here, then using include "xineScope.h" would be without special care.

If `extern "C"` were used here, then using `include "xineScope.h"` would be without special care.
MicheleC marked this conversation as resolved
SlavekB approved these changes 4 years ago
SlavekB left a comment
Owner

Successfully tested building on Wheezy and Bullseye.
Good work, thank you.

Successfully tested building on Wheezy and Bullseye. Good work, thank you.
MicheleC merged commit 304d3a226c into master 4 years ago
MicheleC deleted branch issue/scope-plugin 4 years ago
MicheleC removed the PR/rfc label 4 years ago

Reviewers

SlavekB approved these changes 4 years ago
The pull request has been merged as 304d3a226c.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/codeine#3
Loading…
There is no content yet.