mirror of
https://github.com/sheumann/smbfst.git
synced 2025-10-31 23:56:45 -07:00
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2024 Stephen Heumann
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
#ifndef RPC_H
|
|
#define RPC_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <types.h>
|
|
#include "rpc/rpcpdu.h"
|
|
|
|
typedef struct {
|
|
Word refNum;
|
|
uint32_t callId;
|
|
} RPCConnection;
|
|
|
|
bool ConnectRPC(RPCConnection *conn, char *name);
|
|
void DisconnectRPC(RPCConnection *conn);
|
|
uint32_t RPCBind(RPCConnection *conn, const p_syntax_id_t *abstractSyntax);
|
|
Handle RPCRequest(RPCConnection *conn, uint16_t opnum,
|
|
void *stubData, uint16_t requestStubSize);
|
|
|
|
#endif
|