Loading files
0cf0aa44aThis file is pinned to the selected release. Download the original to open it in your design tool.
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* OBEX Server
*
* Copyright (C) 2007-2010 Marcel Holtmann <marcel@holtmann.org>
*
*
*/
struct obex_plugin_desc {
const char *name;
int (*init) (void);
void (*exit) (void);
};
#ifdef OBEX_PLUGIN_BUILTIN
#define OBEX_PLUGIN_DEFINE(name, init, exit) \
struct obex_plugin_desc __obex_builtin_ ## name = { \
#name, init, exit \
};
#else
#define OBEX_PLUGIN_DEFINE(name,init,exit) \
extern struct obex_plugin_desc obex_plugin_desc \
__attribute__ ((visibility("default"))); \
struct obex_plugin_desc obex_plugin_desc = { \
#name, init, exit \
};
#endif