Split solana_sdk.h (#19172)

This commit is contained in:
Jack May
2021-08-13 09:49:24 -07:00
committed by GitHub
parent 5b9671d01a
commit 04c0c608a3
20 changed files with 1083 additions and 856 deletions

View File

@ -2,8 +2,9 @@
* @brief Example C-based BPF program that prints out the parameters
* passed to it
*/
#include <solana_sdk.h>
#include <deserialize_deprecated.h>
#include <sol/types.h>
#include <sol/log.h>
#include <sol/deserialize_deprecated.h>
extern uint64_t entrypoint(const uint8_t *input) {
SolAccountInfo ka[1];

View File

@ -2,7 +2,12 @@
* @brief Example C-based BPF program that tests cross-program invocations
*/
#include "../invoked/instruction.h"
#include <solana_sdk.h>
#include <sol/entrypoint.h>
#include <sol/cpi.h>
#include <sol/pubkey.h>
#include <sol/log.h>
#include <sol/assert.h>
#include <sol/deserialize.h>
static const uint8_t TEST_SUCCESS = 1;
static const uint8_t TEST_PRIVILEGE_ESCALATION_SIGNER = 2;

View File

@ -2,7 +2,7 @@
* @brief Instruction definitions for the invoked program
*/
#include <solana_sdk.h>
#include <sol/types.h>
const uint8_t VERIFY_TRANSLATIONS = 0;
const uint8_t RETURN_ERROR = 1;

View File

@ -2,7 +2,8 @@
* @brief Example C based BPF program that prints out the parameters
* passed to it
*/
#include <solana_sdk.h>
#include <sol/deserialize.h>
extern uint64_t entrypoint(const uint8_t *input) {
SolAccountInfo ka[1];

View File

@ -1,7 +1,11 @@
/**
* @brief SHA256 Syscall test
*/
#include <solana_sdk.h>
#include <sol/sha.h>
#include <sol/keccak.h>
#include <sol/blake3.h>
#include <sol/string.h>
#include <sol/assert.h>
extern uint64_t entrypoint(const uint8_t *input) {