1 /* 2 * Copyright (c) 2014 Brian Swetland 3 * 4 * Use of this source code is governed by a MIT-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/MIT 7 */ 8 9 #pragma once 10 11 // connect to host, issue cmd:args, and if txfd != -1, send the contents 12 // of that file as the command payload 13 int lkboot_txn(const char *host, const char *cmd, int txfd, const char *args); 14 15 // return number of bytes of data the last txn resulted in and if nonzero 16 // set *ptr = the buffer (which remains valid until next lkboot_txn()) 17 unsigned lkboot_get_reply(void **ptr); 18