tizen 2.3 release
[framework/system/deviced.git] / src / icd / icd.c
1 /*
2  * deviced
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License);
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19
20 #include <stdio.h>
21 #include <assert.h>
22 #include <limits.h>
23 #include <libudev.h>
24 #include <Ecore.h>
25
26 #include "core/log.h"
27 #include "core/common.h"
28 #include "core/devices.h"
29 #include "core/udev.h"
30
31 #include "icd-integrity.h"
32
33 static void icd_init(void *data)
34 {
35         icd_check_integrity();
36 }
37
38 static void icd_exit(void *data)
39 {
40 }
41
42 static const struct device_ops icd_device_ops = {
43         .priority = DEVICE_PRIORITY_NORMAL,
44         .name     = "icd",
45         .init     = icd_init,
46         .exit     = icd_exit,
47 };
48
49 DEVICE_OPS_REGISTER(&icd_device_ops)