~ubuntu-branches/ubuntu/trusty/geis/trusty

« back to all changes in this revision

Viewing changes to libgeis/backend/grail/geis_grail_token.h

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-07-30 08:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20120730085142-jrc33ygjvt0ob1wl
Tags: upstream-2.2.11
ImportĀ upstreamĀ versionĀ 2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file geis_grail_token.h
 
3
 * @brief GEIS filter token for the grail-based back end
 
4
 */
 
5
/*
 
6
 * Copyright 2011-2012 Canonical Ltd.
 
7
 *
 
8
 * This library is free software: you can redistribute it and/or modify it 
 
9
 * under the terms of the GNU Lesser General Public License version 3
 
10
 * as published by the Free Software Foundation.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful, but 
 
13
 * WITHOUT ANY WARRANTY; without even the implied warranties of 
 
14
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
 
15
 * PURPOSE.  See the GNU Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public License
 
18
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
19
 */
 
20
#ifndef GEIS_BACKEND_GRAIL_TOKEN_H_
 
21
#define GEIS_BACKEND_GRAIL_TOKEN_H_
 
22
 
 
23
#include "geis_backend_protected.h"
 
24
 
 
25
/** The Grail Back End token type */
 
26
typedef struct GeisGrailToken *GeisGrailToken;
 
27
 
 
28
 
 
29
GeisBackendToken
 
30
geis_grail_token_new(GeisBackend be, GeisBackendTokenInitState init_state);
 
31
 
 
32
void             
 
33
geis_grail_token_delete(GeisBackendToken token);
 
34
 
 
35
/**
 
36
 * Callback for adding a filter term for a gesture class.
 
37
 */
 
38
GeisStatus
 
39
geis_grail_token_add_class_term(GeisBackendToken     gbtoken,
 
40
                                void                *context,
 
41
                                GeisString           name,
 
42
                                GeisFilterOperation  op,
 
43
                                void                *value);
 
44
 
 
45
/**
 
46
 * Callback for adding a filter term for a device.
 
47
 */
 
48
GeisStatus
 
49
geis_grail_token_add_device_term(GeisBackendToken     gbtoken,
 
50
                                 void                *context,
 
51
                                 GeisString           name,
 
52
                                 GeisFilterOperation  op,
 
53
                                 void                *value);
 
54
 
 
55
/**
 
56
 * Callback for adding a filter term for a feature.
 
57
 */
 
58
GeisStatus
 
59
geis_grail_token_add_feature_term(GeisBackendToken     gbtoken,
 
60
                                  void                *context,
 
61
                                  GeisString           name,
 
62
                                  GeisFilterOperation  op,
 
63
                                  void                *value);
 
64
 
 
65
/**
 
66
 * Callback for adding a filter term for a region.
 
67
 */
 
68
GeisStatus
 
69
geis_grail_token_add_region_term(GeisBackendToken     gbtoken,
 
70
                                 void                *context,
 
71
                                 GeisString           name,
 
72
                                 GeisFilterOperation  op,
 
73
                                 void                *value);
 
74
 
 
75
#endif /* GEIS_BACKEND_GRAIL_TOKEN_H_ */