aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/StopDebugLogResponse.pb-c.h
blob: 2a4c21b859043e7088637163c6db6decadb215a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: StopDebugLogResponse.proto */

#ifndef PROTOBUF_C_StopDebugLogResponse_2eproto__INCLUDED
#define PROTOBUF_C_StopDebugLogResponse_2eproto__INCLUDED

#include <protobuf-c/protobuf-c.h>

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif


typedef struct _StopDebugLogResponse StopDebugLogResponse;


/* --- enums --- */


/* --- messages --- */

struct  _StopDebugLogResponse
{
  ProtobufCMessage base;
};
#define STOP_DEBUG_LOG_RESPONSE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&stop_debug_log_response__descriptor) \
     }


/* StopDebugLogResponse methods */
void   stop_debug_log_response__init
                     (StopDebugLogResponse         *message);
size_t stop_debug_log_response__get_packed_size
                     (const StopDebugLogResponse   *message);
size_t stop_debug_log_response__pack
                     (const StopDebugLogResponse   *message,
                      uint8_t             *out);
size_t stop_debug_log_response__pack_to_buffer
                     (const StopDebugLogResponse   *message,
                      ProtobufCBuffer     *buffer);
StopDebugLogResponse *
       stop_debug_log_response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   stop_debug_log_response__free_unpacked
                     (StopDebugLogResponse *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*StopDebugLogResponse_Closure)
                 (const StopDebugLogResponse *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor stop_debug_log_response__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_StopDebugLogResponse_2eproto__INCLUDED */
class="n">Size = 1000 * 1000; } protected virtual String OnGetName() { return System.IO.Path.GetFileName(Path); } public override string ToString() { return Name; } public static FileSystemItem FromDTO(FileSystemItemDTO dto) { FileSystemItem item = null; if (dto.Type == FileSystemItemType.Drive) { item = new DriveItem() { DriveType = dto.DriveType, Label = dto.DriveLabel, Items = dto.Items?.Select(x => FromDTO(x)).ToObservableCollection() }; } else if (dto.Type == FileSystemItemType.Folder) { item = new FolderItem() { Items = dto.Items?.Select(x => FromDTO(x)).ToObservableCollection(), IsRoot = dto.IsRoot, }; } else if (dto.Type == FileSystemItemType.File) { item = new FileItem(); } item.DateModified = dto.DateModified; item.DateCreated = dto.DateCreated; item.Path = dto.Path; item.Size = dto.Size; item.Type = dto.Type; return item; } public String GetParent() { if (Path == "/") return null; String root = System.IO.Path.GetPathRoot(Path); var parent = Directory.GetParent(Path); if (root == "\\") { return parent.FullName.Replace(parent.Root.FullName, "/").Replace("\\", "/"); } else if (parent != null) { return parent.FullName; } else { return null; } } } }