This adds libofonobinderpluginext.so library which defines interfaces and provides the mechanism for registering extensions. The only interface defined so far is BinderExtImsSmsInterface
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 *  oFono - Open Source Telephony - binder based adaptation
 | 
						|
 *
 | 
						|
 *  Copyright (C) 2022 Jolla Ltd.
 | 
						|
 *
 | 
						|
 *  This program is free software; you can redistribute it and/or modify
 | 
						|
 *  it under the terms of the GNU General Public License version 2 as
 | 
						|
 *  published by the Free Software Foundation.
 | 
						|
 *
 | 
						|
 *  This program is distributed in the hope that it will be useful,
 | 
						|
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
						|
 *  GNU General Public License for more details.
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef BINDER_EXT_PLUGIN_IMPL_H
 | 
						|
#define BINDER_EXT_PLUGIN_IMPL_H
 | 
						|
 | 
						|
#include "binder_ext_plugin.h"
 | 
						|
 | 
						|
#include <radio_types.h>
 | 
						|
 | 
						|
/* Internal API for use by BinderExtPlugin implemenations */
 | 
						|
 | 
						|
G_BEGIN_DECLS
 | 
						|
 | 
						|
typedef struct binder_ext_plugin_class {
 | 
						|
    GObjectClass parent;
 | 
						|
    const char* plugin_name;
 | 
						|
 | 
						|
    BinderExtSlot* (*new_slot)(BinderExtPlugin* plugin,
 | 
						|
        RadioInstance* radio, GHashTable* params);
 | 
						|
 | 
						|
    /* Padding for future expansion */
 | 
						|
    void (*_reserved1)(void);
 | 
						|
    void (*_reserved2)(void);
 | 
						|
    void (*_reserved3)(void);
 | 
						|
    void (*_reserved4)(void);
 | 
						|
    void (*_reserved5)(void);
 | 
						|
    void (*_reserved6)(void);
 | 
						|
    void (*_reserved7)(void);
 | 
						|
    void (*_reserved8)(void);
 | 
						|
    void (*_reserved9)(void);
 | 
						|
    void (*_reserved10)(void);
 | 
						|
} BinderExtPluginClass;
 | 
						|
 | 
						|
#define BINDER_EXT_PLUGIN_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass, \
 | 
						|
        BINDER_EXT_TYPE_PLUGIN, BinderExtPluginClass)
 | 
						|
 | 
						|
G_END_DECLS
 | 
						|
 | 
						|
#endif /* BINDER_EXT_PLUGIN_IMPL_H */
 | 
						|
 | 
						|
/*
 | 
						|
 * Local Variables:
 | 
						|
 * mode: C
 | 
						|
 * c-basic-offset: 4
 | 
						|
 * indent-tabs-mode: nil
 | 
						|
 * End:
 | 
						|
 */
 |