From 9e6ef5ce51d567d925b8451cbe70be82432f9d31 Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Sat, 4 Oct 2003 00:52:24 +0000 Subject: [PATCH] Added PortMessage::ReadString and PortLink::AttachString to support BSession-style string-attachments git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4938 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/app/PortLink.h | 1 + headers/private/app/PortMessage.h | 1 + 2 files changed, 2 insertions(+) diff --git a/headers/private/app/PortLink.h b/headers/private/app/PortLink.h index 3628256344..e508f4e46c 100644 --- a/headers/private/app/PortLink.h +++ b/headers/private/app/PortLink.h @@ -23,6 +23,7 @@ public: void MakeEmpty(); status_t Attach(const void *data, size_t size); + status_t AttachString(const char *string); template status_t Attach(Type data) { int32 size = sizeof(Type); diff --git a/headers/private/app/PortMessage.h b/headers/private/app/PortMessage.h index a22a1b8571..82eec95354 100644 --- a/headers/private/app/PortMessage.h +++ b/headers/private/app/PortMessage.h @@ -49,6 +49,7 @@ public: ssize_t BufferSize(void) { return _buffersize; } status_t Read(void *data, ssize_t size); + status_t ReadString(char **string); template status_t Read(Type *data) { int32 size = sizeof(Type);