Developer World
Spresense SDK Library v3.3.0-375c679
lte_log.h
Go to the documentation of this file.
1/****************************************************************************
2 * apps/include/lte/lte_log.h
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership. The
7 * ASF licenses this file to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance with the
9 * License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 * License for the specific language governing permissions and limitations
17 * under the License.
18 *
19 ****************************************************************************/
20
21#ifndef __APPS_INCLUDE_LTE_LTE_LOG_H
22#define __APPS_INCLUDE_LTE_LTE_LOG_H
23
43/****************************************************************************
44 * Included Files
45 ****************************************************************************/
46
47#include <sys/types.h>
49
50#ifdef __cplusplus
51#define EXTERN extern "C"
52extern "C"
53{
54#else
55#define EXTERN extern
56#endif
57
58/****************************************************************************
59 * Public Function Prototypes
60 ****************************************************************************/
61
82int lte_log_collect(FAR char *output_fname, size_t len);
83
102int lte_log_getlist(size_t listsize, size_t fnamelen,
103 char list[listsize][fnamelen]);
104
105#ifdef CONFIG_LTE_LAPI_LOG_ACCESS
106
122int lte_log_open(FAR const char *filename);
123
138int lte_log_close(int fd);
139
156ssize_t lte_log_read(int fd, FAR void *buf, size_t len);
157
172int lte_log_remove(FAR const char *filename);
173
194int lte_log_lseek(int fd, off_t offset, int whence);
195
200#endif /* CONFIG_LTE_LAPI_LOG_ACCESS */
201
202#undef EXTERN
203#ifdef __cplusplus
204}
205#endif
206
207#endif /* __APPS_INCLUDE_LTE_LTE_LOG_H */
int lte_log_getlist(size_t listsize, size_t fnamelen, char list[listsize][fnamelen])
int lte_log_collect(FAR char *output_fname, size_t len)