ls.h (1761B)
1/* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 20#ifndef GUAC_RDP_LS_H 21#define GUAC_RDP_LS_H 22 23#include "common/json.h" 24#include "fs.h" 25 26#include <guacamole/protocol.h> 27#include <guacamole/stream.h> 28#include <guacamole/user.h> 29 30#include <stdint.h> 31 32/** 33 * The current state of a directory listing operation. 34 */ 35typedef struct guac_rdp_ls_status { 36 37 /** 38 * The filesystem associated with the directory being listed. 39 */ 40 guac_rdp_fs* fs; 41 42 /** 43 * The file ID of the directory being listed. 44 */ 45 int file_id; 46 47 /** 48 * The absolute path of the directory being listed. 49 */ 50 char directory_name[GUAC_RDP_FS_MAX_PATH]; 51 52 /** 53 * The current state of the JSON directory object being written. 54 */ 55 guac_common_json_state json_state; 56 57} guac_rdp_ls_status; 58 59/** 60 * Handler for ack messages received due to receipt of a "body" or "blob" 61 * instruction associated with a directory list operation. 62 */ 63guac_user_ack_handler guac_rdp_ls_ack_handler; 64 65#endif 66