fxsdk/fxlink/fxlink.h

44 lines
1.4 KiB
C
Raw Permalink Normal View History

//---------------------------------------------------------------------------//
// ==>/[_]\ fxlink: A community communication tool for CASIO calculators. //
// |:::| Made by Lephe' as part of the fxSDK. //
// \___/ License: MIT <https://opensource.org/licenses/MIT> //
//---------------------------------------------------------------------------//
// fxlink.fxlink: Options and mode functions
#pragma once
#include <fxlink/filter.h>
#include <libusb.h>
/* Global and command-line options. */
struct fxlink_options {
/* If not NULL, gets a copy of all text messages received in either
interactive mode */
2022-05-01 17:20:47 +02:00
FILE *log_file;
/* Extra details (mainly interactive messages) */
bool verbose;
2022-05-01 17:20:47 +02:00
};
extern struct fxlink_options options;
/* Main function for -l */
int main_list(struct fxlink_filter *filter, delay_t *delay,
libusb_context *context);
/* Main function for -b */
int main_blocks(struct fxlink_filter *filter, delay_t *delay);
/* Main function for -s */
int main_send(struct fxlink_filter *filter, delay_t *delay, char **files,
char *outfolder);
/* Main function for -i */
int main_interactive(struct fxlink_filter *filter, delay_t *delay,
libusb_context *context);
2023-01-18 00:02:29 +01:00
/* Main function for -t */
int main_tui_interactive(libusb_context *context);
/* Main function for -p */
int main_push(struct fxlink_filter *filter, delay_t *delay,
libusb_context *context, char **files);