← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcpp-plugin-sdk-cpp/trunk] Rev 9: update plugin API defs

 

------------------------------------------------------------
revno: 9
committer: poy <poy@xxxxxxxxxx>
branch nick: dcpp-plugin-sdk-cpp
timestamp: Tue 2013-01-29 19:14:01 +0100
message:
  update plugin API defs
modified:
  LICENSE
  pluginsdk/PluginDefs.h


--
lp:dcpp-plugin-sdk-cpp
https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcpp-plugin-sdk-cpp.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/trunk/+edit-subscription
=== modified file 'LICENSE'
--- LICENSE	2012-11-16 19:19:36 +0000
+++ LICENSE	2013-01-29 18:14:01 +0000
@@ -1,5 +1,5 @@
 DC++ plugin SDK (C++)
-Copyright (C) 2012 Jacek Sieka, arnetheduck at gmail dot com
+Copyright (C) 2012-2013 Jacek Sieka, arnetheduck at gmail dot com
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License

=== modified file 'pluginsdk/PluginDefs.h'
--- pluginsdk/PluginDefs.h	2013-01-18 21:37:14 +0000
+++ pluginsdk/PluginDefs.h	2013-01-29 18:14:01 +0000
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2001-2012-2013 Jacek Sieka, arnetheduck on gmail point com
+ * Copyright (C) 2001-2013 Jacek Sieka, arnetheduck on gmail point com
  *
  * 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
@@ -77,7 +77,7 @@
 #define DCINTF_DCPP_UTILS_VER		1
 
 #define DCINTF_DCPP_TAGGER			"dcpp.xml.DCTagger"			/* Manipulation of an XML tagger */
-#define DCINTF_DCPP_TAGGER_VER		1
+#define DCINTF_DCPP_TAGGER_VER		2
 
 #define DCINTF_DCPP_UI				"dcpp.ui.DCUI"				/* User interface */
 #define DCINTF_DCPP_UI_VER			1
@@ -259,7 +259,6 @@
 
 /* Tagging intentions */
 typedef struct tagTagData {
-	const char* text;											/* Plain text string to apply tags on */
 	dcptr_t object;												/* Internal */
 	Bool isManaged;												/* Always True for now */
 } TagData, *TagDataPtr;
@@ -426,6 +425,10 @@
 	uint32_t apiVersion;
 
 	void		(DCAPI *add_tag)					(TagDataPtr hTags, size_t start, size_t end, const char* id, const char* attributes);
+
+	/* Version 2 functions */
+	const char*	(DCAPI *get_text)					(TagDataPtr hTags);
+	void		(DCAPI *replace_text)				(TagDataPtr hTags, size_t start, size_t end, const char* replacement);
 } DCTagger, *DCTaggerPtr;
 
 /* User interface */