diff options
author | Patrick McHardy <kaber@trash.net> | 2010-07-30 02:04:17 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-07-30 02:44:03 +0200 |
commit | fb92f53e967778dc2d56e2fb39995b6870db3877 (patch) | |
tree | fbbb2173e3de5b479e73b51164f458df47fbe356 | |
parent | 897ce45c142f16ec430241bc91b4bee5c3af995a (diff) |
example: add LCE ops to dummy_ops
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | example/dummy_ops.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/example/dummy_ops.c b/example/dummy_ops.c index 5ad82ca..1c022a4 100644 --- a/example/dummy_ops.c +++ b/example/dummy_ops.c @@ -2,6 +2,23 @@ #include "common.h" /* + * LCE Ops + */ + +static bool lce_page_response(struct dect_handle *dh, + struct dect_lce_page_param *param) +{ + return true; +} + +static void lce_group_ring_ind(struct dect_handle *dh, + enum dect_ring_patterns pattern) +{ +} + +static struct dect_lce_ops dummy_lce_ops; + +/* * CC Ops */ @@ -270,10 +287,20 @@ static struct dect_ss_ops dummy_ss_ops; void dect_dummy_ops_init(struct dect_ops *ops) { + struct dect_lce_ops *lce_ops; struct dect_cc_ops *cc_ops; struct dect_mm_ops *mm_ops; struct dect_ss_ops *ss_ops; + if (!ops->lce_ops) + ops->lce_ops = &dummy_lce_ops; + lce_ops = (void *)ops->lce_ops; + + if (!lce_ops->lce_page_response) + lce_ops->lce_page_response = lce_page_response; + if (!lce_ops->lce_group_ring_ind) + lce_ops->lce_group_ring_ind = lce_group_ring_ind; + if (!ops->cc_ops) ops->cc_ops = &dummy_cc_ops; cc_ops = (void *)ops->cc_ops; |