mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 13:00:26 -04:00 
			
		
		
		
	Server: variable to avoid instantiation of GUI dependent objects when compiling plugins for server: Applied to NFM demod
This commit is contained in:
		
							parent
							
								
									0ec1d6db31
								
							
						
					
					
						commit
						38373fbd87
					
				| @ -7,7 +7,7 @@ | |||||||
| 
 | 
 | ||||||
| const PluginDescriptor NFMPlugin::m_pluginDescriptor = { | const PluginDescriptor NFMPlugin::m_pluginDescriptor = { | ||||||
| 	QString("NFM Demodulator"), | 	QString("NFM Demodulator"), | ||||||
| 	QString("3.8.5"), | 	QString("3.9.0"), | ||||||
| 	QString("(c) Edouard Griffiths, F4EXB"), | 	QString("(c) Edouard Griffiths, F4EXB"), | ||||||
| 	QString("https://github.com/f4exb/sdrangel"), | 	QString("https://github.com/f4exb/sdrangel"), | ||||||
| 	true, | 	true, | ||||||
| @ -33,6 +33,15 @@ void NFMPlugin::initPlugin(PluginAPI* pluginAPI) | |||||||
| 	m_pluginAPI->registerRxChannel(NFMDemod::m_channelIdURI, NFMDemod::m_channelId, this); | 	m_pluginAPI->registerRxChannel(NFMDemod::m_channelIdURI, NFMDemod::m_channelId, this); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | #ifdef SERVER_MODE | ||||||
|  | PluginInstanceGUI* NFMPlugin::createRxChannelGUI( | ||||||
|  |         const QString& channelName __attribute__((unused)), | ||||||
|  |         DeviceUISet *deviceUISet __attribute__((unused)), | ||||||
|  |         BasebandSampleSink *rxChannel __attribute__((unused))) | ||||||
|  | { | ||||||
|  |     return 0; | ||||||
|  | } | ||||||
|  | #else | ||||||
| PluginInstanceGUI* NFMPlugin::createRxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) | PluginInstanceGUI* NFMPlugin::createRxChannelGUI(const QString& channelName, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) | ||||||
| { | { | ||||||
| 	if(channelName == NFMDemod::m_channelIdURI) { | 	if(channelName == NFMDemod::m_channelIdURI) { | ||||||
| @ -42,6 +51,7 @@ PluginInstanceGUI* NFMPlugin::createRxChannelGUI(const QString& channelName, Dev | |||||||
| 		return 0; | 		return 0; | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| BasebandSampleSink* NFMPlugin::createRxChannel(const QString& channelName, DeviceSourceAPI *deviceAPI) | BasebandSampleSink* NFMPlugin::createRxChannel(const QString& channelName, DeviceSourceAPI *deviceAPI) | ||||||
| { | { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user