git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] add constants for sideband communication channels

From
iheffner@gmail.com <iheffner@gmail.com>
Date
Dec 13, 2011, 18:28 UTC
Message-ID
<1323800931-37123-2-git-send-email-iheffner@gmail.com>
In-Reply-To
<1323800931-37123-1-git-send-email-iheffner@gmail.com>
From: Ivan Heffner <iheffner@gmail.com>
Add constants for sideband channel identifiers.
* SIDEBAND_CHAN_PACK     => 1
* SIDEBAND_CHAN_PROGRESS => 2
* SIDEBAND_CHAN_ERROR    => 3
Signed-off-by: Ivan Heffner <iheffner@gmail.com>
---
 sideband.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/sideband.h b/sideband.h
index d72db35..2954979 100644
--- a/sideband.h
+++ b/sideband.h
@@ -2,7 +2,11 @@
 #define SIDEBAND_H
 
 #define SIDEBAND_PROTOCOL_ERROR -2
-#define SIDEBAND_REMOTE_ERROR -1
+#define SIDEBAND_REMOTE_ERROR   -1
+#define SIDEBAND_CHAN_PACK       1
+#define SIDEBAND_CHAN_PROGRESS   2
+#define SIDEBAND_CHAN_ERROR      3
+
 
 #define DEFAULT_PACKET_MAX 1000
 #define LARGE_PACKET_MAX 65520
-- 
1.7.6.553.g917d7.dirty
Previous: iheffner@gmail.comNext: iheffner@gmail.com
Message 2 of 5 in “use constants for sideband communication channels”
  1. 0/3 use constants for sideband communication channelsiheffner@gmail.com, Dec 13, 2011
  2. 1/3 add constants for sideband communication channelsiheffner@gmail.com, Dec 13, 2011
  3. 2/3 switch sideband communication to use constantsiheffner@gmail.com, Dec 13, 2011
  4. 3/3 use SIDEBAND_*_ERROR constants in pack protocoliheffner@gmail.com, Dec 13, 2011
  5. Junio C HamanoDec 14, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.