~phablet-team/ofono/ofono-bug-updates

« back to all changes in this revision

Viewing changes to include/plugin.h

  • Committer: Denis Kenzior
  • Author(s): Lucas De Marchi
  • Date: 2011-03-18 23:31:14 UTC
  • Revision ID: git-v1:888e07863b24026413bac8f449de377c879e1044
message: add cancelled state

Based on patch from Yang Gu <gyagp0@gmail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  oFono - Open Source Telephony
4
4
 *
5
 
 *  Copyright (C) 2008-2011  Intel Corporation. All rights reserved.
 
5
 *  Copyright (C) 2008-2010  Intel Corporation. All rights reserved.
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
8
8
 *  it under the terms of the GNU General Public License version 2 as
23
23
#define __OFONO_PLUGIN_H
24
24
 
25
25
#include <ofono/version.h>
26
 
#include <ofono/log.h>
27
26
 
28
27
#ifdef __cplusplus
29
28
extern "C" {
51
50
        int priority;
52
51
        int (*init) (void);
53
52
        void (*exit) (void);
54
 
        void *debug_start;
55
 
        void *debug_stop;
56
53
};
57
54
 
58
55
/**
72
69
                };
73
70
#else
74
71
#define OFONO_PLUGIN_DEFINE(name, description, version, priority, init, exit) \
75
 
                extern struct ofono_debug_desc __start___debug[] \
76
 
                                __attribute__ ((weak, visibility("hidden"))); \
77
 
                extern struct ofono_debug_desc __stop___debug[] \
78
 
                                __attribute__ ((weak, visibility("hidden"))); \
79
72
                extern struct ofono_plugin_desc ofono_plugin_desc \
80
73
                                __attribute__ ((visibility("default"))); \
81
74
                struct ofono_plugin_desc ofono_plugin_desc = { \
82
 
                        #name, description, version, priority, init, exit, \
83
 
                        __start___debug, __stop___debug \
 
75
                        #name, description, version, priority, init, exit \
84
76
                };
85
77
#endif
86
78