diff options
author | Vitaliy Cherepanov <v.cherepanov@samsung.com> | 2013-07-11 17:18:20 +0400 |
---|---|---|
committer | Vitaliy Cherepanov <v.cherepanov@samsung.com> | 2013-07-11 17:18:20 +0400 |
commit | d7a5816a5aabfa51b8709e0c3b3caa885cffd5ef (patch) | |
tree | 649970f0e9426ce195d95d315b96e98eeab2f404 | |
parent | 4b5da5f6f8d6dc5762a77d66db45594a829936d6 (diff) | |
download | swap-manager-d7a5816a5aabfa51b8709e0c3b3caa885cffd5ef.tar.gz swap-manager-d7a5816a5aabfa51b8709e0c3b3caa885cffd5ef.tar.bz2 swap-manager-d7a5816a5aabfa51b8709e0c3b3caa885cffd5ef.zip |
[COPYRIGHT] copyright update
-rw-r--r-- | daemon/buffer.c | 27 | ||||
-rw-r--r-- | daemon/buffer.h | 28 | ||||
-rw-r--r-- | daemon/da_data.c | 66 | ||||
-rw-r--r-- | daemon/da_data.h | 28 | ||||
-rw-r--r-- | daemon/da_debug.c | 53 | ||||
-rw-r--r-- | daemon/da_protocol.c | 28 | ||||
-rw-r--r-- | daemon/da_protocol.h | 28 | ||||
-rw-r--r-- | daemon/daemon.c | 53 | ||||
-rw-r--r-- | daemon/daemon.h | 53 | ||||
-rw-r--r-- | daemon/debug.c | 27 | ||||
-rw-r--r-- | daemon/debug.h | 27 | ||||
-rw-r--r-- | daemon/elf.c | 29 | ||||
-rw-r--r-- | daemon/elf.h | 29 | ||||
-rw-r--r-- | daemon/ioctl_commands.c | 28 | ||||
-rw-r--r-- | daemon/ioctl_commands.h | 28 | ||||
-rw-r--r-- | daemon/main.c | 53 | ||||
-rw-r--r-- | daemon/sys_stat.c | 54 | ||||
-rw-r--r-- | daemon/sys_stat.h | 54 | ||||
-rw-r--r-- | daemon/threads.c | 54 | ||||
-rw-r--r-- | daemon/threads.h | 46 | ||||
-rw-r--r-- | daemon/transfer_thread.c | 28 | ||||
-rw-r--r-- | daemon/transfer_thread.h | 28 | ||||
-rw-r--r-- | daemon/utils.c | 53 | ||||
-rw-r--r-- | daemon/utils.h | 53 |
24 files changed, 692 insertions, 263 deletions
diff --git a/daemon/buffer.c b/daemon/buffer.c index 8d87599..52a1e3e 100644 --- a/daemon/buffer.c +++ b/daemon/buffer.c @@ -1,3 +1,30 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> diff --git a/daemon/buffer.h b/daemon/buffer.h index 766c855..176bf34 100644 --- a/daemon/buffer.h +++ b/daemon/buffer.h @@ -1,3 +1,31 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #ifndef _BUFFER_ #define _BUFFER_ diff --git a/daemon/da_data.c b/daemon/da_data.c index aa499c1..cde8fd7 100644 --- a/daemon/da_data.c +++ b/daemon/da_data.c @@ -1,47 +1,37 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <:wn.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #include "da_protocol.h" #include "daemon.h" #include "da_data.h" #include "debug.h" #include <sys/time.h> -/* -struct msg_system_t msg_system; - -int fill_message_system(struct msg_system_t ** sys){ - - struct msg_system_t * psys = *sys; - psys->energy = 0; - psys->WiFi_status = get_wifi_status(); - psys->BT_status = get_bt_status(); - psys->GPS_status = get_gps_status(); - psys->brightness_status = get_brightness_status(); - psys->camera_status = get_camera_status(); - psys->sound_status = get_sound_status(); - psys->audio_status = get_audio_status(); - psys->vibration_status = get_vibration_status(); - psys->voltage_status = get_voltage_status(); - psys->RSSI_status = get_rssi_status(); - psys->video_status = get_video_status(); - psys->call_status = get_call_status(); - psys->DNet_status = get_dnet_status(); -// psys->CPU_frequency = get_cpu_frequency(), freqbuf in get_resource_info() -// psys->app_CPU_usage = app_cpu_usage in get_resource_info() -// psys->CPU_load cpuload in get_resource_info() -// psys->virtual_memory = virtual in get_resource_info() -// psys->resident_memory = resident in get_resource_info() -// psys->shared_memory = shared in get_resource_info() -// psys->PSS_memory = pss in get_resource_info() -// psys->total_alloc_size = get_total_alloc_size(); -// psys->system_memory_total = get_system_total_memory(), sysmemtotal in get_resource_info(); -// psys->system_memory_used = update_system_memory_data(), sysmemused in get_resource_info(); - psys->total_used_drive = get_total_used_drive(); -// psys->count_of_threads = thread in get_resource_info() -// psys->thread_load = thread_load in get_resource_info() -// psys->count_of_processes = procNode* proc in get_resource_info() but no count - - return 0; -}; -*/ int print_sys_info(struct system_info_t * sys_info) { diff --git a/daemon/da_data.h b/daemon/da_data.h index d3c51fe..5bf8d60 100644 --- a/daemon/da_data.h +++ b/daemon/da_data.h @@ -1,3 +1,31 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #ifndef _DA_DATA_H_ #define _DA_DATA_H_ int fill_data_msg_head (struct msg_data_t *data, uint32_t msgid, uint32_t seq, uint32_t len); diff --git a/daemon/da_debug.c b/daemon/da_debug.c index 8592581..2d54f4d 100644 --- a/daemon/da_debug.c +++ b/daemon/da_debug.c @@ -1,30 +1,33 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ #include <stdio.h> #include <sys/types.h> diff --git a/daemon/da_protocol.c b/daemon/da_protocol.c index 4e55cc4..455b01d 100644 --- a/daemon/da_protocol.c +++ b/daemon/da_protocol.c @@ -1,3 +1,31 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #include <stdint.h> #include <stdlib.h> #include <string.h> diff --git a/daemon/da_protocol.h b/daemon/da_protocol.h index 92fd1cc..eabedb4 100644 --- a/daemon/da_protocol.h +++ b/daemon/da_protocol.h @@ -1,3 +1,31 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #ifndef _DA_PROTOCOL_ #define _DA_PROTOCOL_ diff --git a/daemon/daemon.c b/daemon/daemon.c index 0f33897..781fd8f 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -1,30 +1,33 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ #include <stdio.h> #include <stdlib.h> // for realpath diff --git a/daemon/daemon.h b/daemon/daemon.h index 47a4240..f8b194c 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -1,30 +1,33 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ #ifndef _DAEMON_H_ diff --git a/daemon/debug.c b/daemon/debug.c index 5f48c8d..f25599f 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -1,3 +1,30 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + #include <ctype.h> diff --git a/daemon/debug.h b/daemon/debug.h index 20110fa..bed9230 100644 --- a/daemon/debug.h +++ b/daemon/debug.h @@ -1,3 +1,30 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + #ifndef _DAEMON_DEBUG_H_ #define _DAEMON_DEBUG_H_ diff --git a/daemon/elf.c b/daemon/elf.c index 63430f4..d31d635 100644 --- a/daemon/elf.c +++ b/daemon/elf.c @@ -1,3 +1,32 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Dmitry Bogatov <d.bogatov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/daemon/elf.h b/daemon/elf.h index b06a080..5f2360f 100644 --- a/daemon/elf.h +++ b/daemon/elf.h @@ -1,3 +1,32 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Dmitry Bogatov <d.bogatov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #ifndef _ELF_ #define _ELF_ #include <limits.h> diff --git a/daemon/ioctl_commands.c b/daemon/ioctl_commands.c index 816365a..2d50db9 100644 --- a/daemon/ioctl_commands.c +++ b/daemon/ioctl_commands.c @@ -1,3 +1,31 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + /* SWAP Device ioctl commands */ #include "ioctl_commands.h" diff --git a/daemon/ioctl_commands.h b/daemon/ioctl_commands.h index 2faeab3..82d4be0 100644 --- a/daemon/ioctl_commands.h +++ b/daemon/ioctl_commands.h @@ -1,3 +1,31 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + /* SWAP Device ioctl commands */ #include "da_protocol.h" diff --git a/daemon/main.c b/daemon/main.c index f45b24b..ee42048 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1,30 +1,33 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ #include <stdio.h> // for fopen, fprintf #include <stdlib.h> // for atexit diff --git a/daemon/sys_stat.c b/daemon/sys_stat.c index fb8cf0d..9faaac9 100644 --- a/daemon/sys_stat.c +++ b/daemon/sys_stat.c @@ -1,30 +1,34 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ + #include <stdio.h> #include <stdlib.h> diff --git a/daemon/sys_stat.h b/daemon/sys_stat.h index ee6c10a..cbbb522 100644 --- a/daemon/sys_stat.h +++ b/daemon/sys_stat.h @@ -1,30 +1,34 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ + #ifndef _SYS_STAT_ #define _SYS_STAT_ diff --git a/daemon/threads.c b/daemon/threads.c index 3b07ec5..7338d36 100644 --- a/daemon/threads.c +++ b/daemon/threads.c @@ -1,30 +1,34 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ + #include <stdio.h> #include <stdlib.h> // for atoi, atol diff --git a/daemon/threads.h b/daemon/threads.h new file mode 100644 index 0000000..6569e3a --- /dev/null +++ b/daemon/threads.h @@ -0,0 +1,46 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ + + +#ifndef _UTILS_H_ +#define _UTILS_H_ + +#ifdef __cplusplus +extern "C" { +#endif + + + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/daemon/transfer_thread.c b/daemon/transfer_thread.c index d5cbd50..cc1d1b9 100644 --- a/daemon/transfer_thread.c +++ b/daemon/transfer_thread.c @@ -1,3 +1,31 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #define _GNU_SOURCE #include <fcntl.h> #include <unistd.h> diff --git a/daemon/transfer_thread.h b/daemon/transfer_thread.h index c60a139..fa6995e 100644 --- a/daemon/transfer_thread.h +++ b/daemon/transfer_thread.h @@ -1,3 +1,31 @@ +/* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - Samsung RnD Institute Russia + * + */ + + #ifndef _TRANSFER_THREAD_ #define _TRANSFER_THREAD_ diff --git a/daemon/utils.c b/daemon/utils.c index ea63d03..7aa8885 100644 --- a/daemon/utils.c +++ b/daemon/utils.c @@ -1,30 +1,33 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ #include <stdio.h> #include <stdlib.h> diff --git a/daemon/utils.h b/daemon/utils.h index 99e5900..eb0a371 100644 --- a/daemon/utils.h +++ b/daemon/utils.h @@ -1,30 +1,33 @@ /* -* DA manager -* -* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. -* -* Contact: -* -* Jaewon Lim <jaewon81.lim@samsung.com> -* Woojin Jung <woojin2.jung@samsung.com> -* Juyoung Kim <j0.kim@samsung.com> -* + * DA manager + * + * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * + * Jaewon Lim <jaewon81.lim@samsung.com> + * Woojin Jung <woojin2.jung@samsung.com> + * Juyoung Kim <j0.kim@samsung.com> + * Cherepanov Vitaliy <v.cherepanov@samsung.com> + * Nikita Kalyazin <n.kalyazin@samsung.com> + * * Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* -* Contributors: -* - S-Core Co., Ltd -* -*/ + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Contributors: + * - S-Core Co., Ltd + * - Samsung RnD Institute Russia + * + */ #include <stdint.h> #include <sys/types.h> |