aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Threading/IDispatcherProvider.cs
blob: 229d0d02b90728b759bebeb923a7a6720fac686f (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.PPC.Common.Threading
{
    /// <summary>
    /// Represents a mechanism for invoking actions on the main application thread.
    /// </summary>
    public interface IDispatcherProvider
    {
        /// <summary>
        /// Invokes the specified action asynchronously.
        /// </summary>
        /// <param name="action">The action.</param>
        void Invoke(Action action);

        /// <summary>
        /// Invokes the specified action synchronously.
        /// </summary>
        /// <param name="action">The action.</param>
        void InvokeBlock(Action action);
    }
}
"w"> FileChunkUploadResponse; /* --- enums --- */ /* --- messages --- */ struct _FileChunkUploadResponse { ProtobufCMessage base; protobuf_c_boolean has_iscanceled; protobuf_c_boolean iscanceled; }; #define FILE_CHUNK_UPLOAD_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&file_chunk_upload_response__descriptor) \ , 0, 0 } /* FileChunkUploadResponse methods */ void file_chunk_upload_response__init (FileChunkUploadResponse *message); size_t file_chunk_upload_response__get_packed_size (const FileChunkUploadResponse *message); size_t file_chunk_upload_response__pack (const FileChunkUploadResponse *message, uint8_t *out); size_t file_chunk_upload_response__pack_to_buffer (const FileChunkUploadResponse *message, ProtobufCBuffer *buffer); FileChunkUploadResponse * file_chunk_upload_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void file_chunk_upload_response__free_unpacked (FileChunkUploadResponse *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*FileChunkUploadResponse_Closure) (const FileChunkUploadResponse *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCMessageDescriptor file_chunk_upload_response__descriptor; PROTOBUF_C__END_DECLS #endif /* PROTOBUF_C_FileChunkUploadResponse_2eproto__INCLUDED */