ThreadX: set current_thread for kernel execution
[openocd.git] / src / openocd.h
blob1c2a633c768cedf602a2b01c246d4d77522d5f5f
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2005 by Dominic Rath <Dominic.Rath@gmx.de> *
5 * Copyright (C) 2009 by Zachary T Welch <zw@superlucidity.net> *
6 ***************************************************************************/
8 #ifndef OPENOCD_OPENOCD_H
9 #define OPENOCD_OPENOCD_H
11 /**
12 * Different applications can define this entry point to override
13 * the default openocd main function. On most systems, this will be
14 * defined in src/openocd.c.
15 * @param argc normally passed from main()
16 * @param argv normally passed from main()
17 * @returns return code for main()
19 int openocd_main(int argc, char *argv[]);
21 #endif /* OPENOCD_OPENOCD_H */