* Move binrz meson directives to binrz/ dir * Move rizin-shell-parser to a subproject * Move bochs to a meson subproject * Move rzqnx to meson subproject * Move winkd to a meson subproject * Move rzar to a meson subproject * Move rzw32dbg_wrap to a meson subproject * Move ptrace-wrap to a meson subproject * Move rzgdb to a meson subproject * Rename w32dbg_wrap to rzw32dbg_wrap * Update CODEOWNERS * Remove old references to shlr * Move shlr/heap stuff in core and remove shlr/arm * Move spp to a meson subproject * Remove last references to shlr * Remove use_webui option * Move include files directives to librz/include/meson.build * Move librz meson directives into librz/meson.build * Handle d/ directories inside the specific module meson.build * Move plugins listing to specific module meson.build * Move rzheap to its own subproject * Fix js linter and licenses * Use meson.override_dependency for all rz_ modules
41 lines
1 KiB
C
41 lines
1 KiB
C
// SPDX-FileCopyrightText: 2016 madprogrammer
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
/*! \file */
|
|
#ifndef PACKET_H
|
|
#define PACKET_H
|
|
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include "libqnxr.h"
|
|
#include <stdio.h>
|
|
#if __WINDOWS__
|
|
#include <windows.h>
|
|
#if !__CYGWIN__ && !defined(MSC_VER)
|
|
#include <winsock.h>
|
|
#endif
|
|
#else
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
int qnxr_send_nak(libqnxr_t *instance);
|
|
int qnxr_send_ch_reset(libqnxr_t *instance);
|
|
int qnxr_send_ch_debug(libqnxr_t *instance);
|
|
int qnxr_send_ch_text(libqnxr_t *instance);
|
|
|
|
/*!
|
|
* \brief sends a packet sends a packet to the established connection
|
|
* \param instance the "instance" of the current libqnxr session
|
|
* \returns a failure code (currently -1) or 0 if call successfully
|
|
*/
|
|
int qnxr_send_packet(libqnxr_t *instance);
|
|
|
|
/*!
|
|
* \brief Function reads data from the established connection
|
|
* \param instance the "instance" of the current libqnxr session
|
|
* \returns a failure code (currently -1) or 0 if call successfully
|
|
*/
|
|
int qnxr_read_packet(libqnxr_t *instance);
|
|
|
|
#endif
|