3 * Copyright 2014, Michal Orynicz for Tieto Corporation
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef __LOGCAT_TEXT_H__
22 #define __LOGCAT_TEXT_H__
28 #define SPECIAL_STRING "[-]+ (beginning of \\/?.+)"
29 #define BRIEF_STRING "([IVDWEF])/(.*?)\\( *(\\d+)\\): (.*)"
30 #define TAG_STRING "([IVDWEF])/(.*?): (.*)"
31 #define TIME_STRING "(\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}) ([IVDWEF])/(.*?)\\( *(\\d+)\\): (.*)"
32 #define THREAD_STRING "([IVDWEF])\\( *(\\d+): *(\\d+)\\) (.*)"
33 #define PROCESS_STRING "([IVDWEF])\\( *(\\d+)\\) (.*)"
34 #define THREADTIME_STRING "(\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}) +(\\d+) +(\\d+) ([IVDWEF]) (.*?): (.*)"
35 #define LONG_STRING "\\[ (\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}) +(\\d+): *(\\d+) ([IVDWEF])/(.+) ]\\R(.*)"
37 wtap_open_return_val logcat_text_open(wtap *wth, int *err, gchar **err_info);
39 gboolean logcat_text_brief_dump_open(wtap_dumper *wdh, int *err);
40 gboolean logcat_text_process_dump_open(wtap_dumper *wdh, int *err);
41 gboolean logcat_text_tag_dump_open(wtap_dumper *wdh, int *err);
42 gboolean logcat_text_time_dump_open(wtap_dumper *wdh, int *err);
43 gboolean logcat_text_thread_dump_open(wtap_dumper *wdh, int *err);
44 gboolean logcat_text_threadtime_dump_open(wtap_dumper *wdh, int *err);
45 gboolean logcat_text_long_dump_open(wtap_dumper *wdh, int *err);
47 int logcat_text_brief_dump_can_write_encap(int encap);
48 int logcat_text_tag_dump_can_write_encap(int encap);
49 int logcat_text_process_dump_can_write_encap(int encap);
50 int logcat_text_thread_dump_can_write_encap(int encap);
51 int logcat_text_time_dump_can_write_encap(int encap);
52 int logcat_text_threadtime_dump_can_write_encap(int encap);
53 int logcat_text_long_dump_can_write_encap(int encap);
58 * Editor modelines - http://www.wireshark.org/tools/modelines.html
63 * indent-tabs-mode: nil
66 * vi: set shiftwidth=4 tabstop=8 expandtab:
67 * :indentSize=4:tabSize=8:noTabs=true: