/* Hey EMACS -*- linux-c -*- */ /* libcalcprotocols - link protocol library, a part of the CalcForge project * Copyright (C) 1999-2005 Romain Lievin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Initialize the LinkCable structure with default functions */ /* This module can be used as sample code.*/ #ifdef HAVE_CONFIG_H #include #endif #include "calcprotocols.h" #include "gettext.h" static int is_ready (CalcHandle* handle) { return 0; } static int send_key (CalcHandle* handle, uint16_t key) { return 0; } static int execute (CalcHandle* handle, VarEntry *ve, const char* args) { return 0; } static int recv_screen (CalcHandle* handle, CalcScreenCoord* sc, uint8_t** bitmap) { return 0; } static int get_dirlist (CalcHandle* handle, GNode** vars, GNode** apps) { return 0; } static int get_memfree (CalcHandle* handle, uint32_t* ram, uint32_t* flash) { return 0; } static int send_backup (CalcHandle* handle, BackupContent* content) { return 0; } static int recv_backup (CalcHandle* handle, BackupContent* content) { return 0; } static int send_var (CalcHandle* handle, CalcMode mode, FileContent* content) { return 0; } static int recv_var (CalcHandle* handle, CalcMode mode, FileContent* content, VarRequest* vr) { return 0; } static int send_var_ns (CalcHandle* handle, CalcMode mode, FileContent* content) { return 0; } static int recv_var_ns (CalcHandle* handle, CalcMode mode, FileContent* content, VarEntry** ve) { return 0; } static int send_flash (CalcHandle* handle, FlashContent* content) { return 0; } static int recv_flash (CalcHandle* handle, FlashContent* content, VarRequest* vr) { return 0; } static int send_os (CalcHandle* handle, FlashContent* content) { return 0; } static int recv_idlist (CalcHandle* handle, uint8_t* idlist) { return 0; } static int dump_rom_1 (CalcHandle* handle) { return 0; } static int dump_rom_2 (CalcHandle* handle, CalcDumpSize size, const char *filename) { return 0; } static int set_clock (CalcHandle* handle, CalcClock* clock) { return 0; } static int get_clock (CalcHandle* handle, CalcClock* clock) { return 0; } static int del_var (CalcHandle* handle, VarRequest* vr) { return 0; } static int new_folder (CalcHandle* handle, VarRequest* vr) { return 0; } static int get_version (CalcHandle* handle, CalcInfos* infos) { return 0; } static int send_cert (CalcHandle* handle, FlashContent* content) { return 0; } static int recv_cert (CalcHandle* handle, FlashContent* content) { return 0; } const CalcFncts calc_00 = { CALC_NONE, "NONE", N_("Dummy hand-held"), N_("Dummy hand-held used when no calc is set"), FTS_NONE, {""}, &is_ready, &send_key, &execute, &recv_screen, &get_dirlist, &get_memfree, &send_backup, &recv_backup, &send_var, &recv_var, &send_var_ns, &recv_var_ns, &send_flash, &recv_flash, &send_os, &recv_idlist, &dump_rom_1, &dump_rom_2, &set_clock, &get_clock, &del_var, &new_folder, &get_version, &send_cert, &recv_cert, };