jak-project/game/kernel/kdgo.h
water111 19b8bb81c9
Add the STR RPC to overlord and game code (#134)
* work in progress streaming rpc, simple test is working

* actually add the test

* debug windows failure

* windows fix maybe

* windows 2

* use str-load-status

* update types
2020-11-22 12:59:55 -05:00

35 lines
961 B
C

#pragma once
/*!
* @file kdgo.h
* Loading DGO Files. Also has some general SIF RPC stuff used for RPCs other than DGO loading.
* DONE!
*/
#ifndef JAK_V2_KDGO_H
#define JAK_V2_KDGO_H
#include "common/common_types.h"
#include "Ptr.h"
#include "kmalloc.h"
void kdgo_init_globals();
u32 InitRPC();
void load_and_link_dgo_from_c(const char* name, Ptr<kheapinfo> heap, u32 linkFlag, s32 bufferSize);
void load_and_link_dgo(u64 name_gstr, u64 heap_info, u64 flag, u64 buffer_size);
void StopIOP();
u64 RpcCall_wrapper(s32 rpcChannel,
u32 fno,
u32 async,
u64 send_buff,
s32 send_size,
u64 recv_buff,
s32 recv_size);
u32 RpcBusy(s32 channel);
void LoadDGOTest();
void RpcCall_wrapper_part1(s32 rpcChannel, u32 fno, u32 async);
u64 RpcCall_wrapper_part2(u64 send_buff, s32 send_size, u64 recv_buff, s32 recv_size);
#endif // JAK_V2_KDGO_H