This reverts commit 34344982a9
.
This commit is contained in:
14
programs/bpf/c/src/bpf_to_bpf/entrypoint.c
Normal file
14
programs/bpf/c/src/bpf_to_bpf/entrypoint.c
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @brief Example C-based BPF program that prints out the parameters
|
||||
* passed to it
|
||||
*/
|
||||
#include <solana_sdk.h>
|
||||
|
||||
#include "helper.h"
|
||||
|
||||
extern bool entrypoint(const uint8_t *input) {
|
||||
sol_log(__FILE__);
|
||||
helper_function();
|
||||
sol_log(__FILE__);
|
||||
return true;
|
||||
}
|
11
programs/bpf/c/src/bpf_to_bpf/helper.c
Normal file
11
programs/bpf/c/src/bpf_to_bpf/helper.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @brief Example C-based BPF program that prints out the parameters
|
||||
* passed to it
|
||||
*/
|
||||
#include <solana_sdk.h>
|
||||
|
||||
#include "helper.h"
|
||||
|
||||
void helper_function(void) {
|
||||
sol_log(__FILE__);
|
||||
}
|
7
programs/bpf/c/src/bpf_to_bpf/helper.h
Normal file
7
programs/bpf/c/src/bpf_to_bpf/helper.h
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* @brief Example C-based BPF program that prints out the parameters
|
||||
* passed to it
|
||||
*/
|
||||
#include <solana_sdk.h>
|
||||
|
||||
void helper_function(void);
|
Reference in New Issue
Block a user