summaryrefslogtreecommitdiff
path: root/src/dispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dispatch.h')
-rw-r--r--src/dispatch.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/dispatch.h b/src/dispatch.h
deleted file mode 100644
index 0e7225f..0000000
--- a/src/dispatch.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * transmission-remote-gtk - A GTK RPC client to Transmission
- * Copyright (C) 2011 Alan Fitton
-
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifndef DISPATCH_H_
-#define DISPATCH_H_
-
-#include "trg-client.h"
-
-#define FAIL_JSON_DECODE -2
-#define FAIL_RESPONSE_UNSUCCESSFUL -3
-
-#define DISPATCH_POOL_SIZE 3
-
-struct DispatchAsyncData {
- gpointer *data;
- JsonNode *req;
- void (*callback) (JsonObject *, int, gpointer);
-};
-
-JsonObject *dispatch(TrgClient * client, JsonNode * req, int *status);
-gboolean dispatch_async(TrgClient * client, JsonNode * req,
- void (*callback) (JsonObject *, int, gpointer),
- gpointer data);
-GThreadPool *dispatch_init_pool(TrgClient * client);
-
-#endif /* DISPATCH_H_ */