[libgee] Add reserved methods to allow future-proof ABI
- From: Maciej Marcin Piechotka <mpiechotka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgee] Add reserved methods to allow future-proof ABI
- Date: Mon, 20 Aug 2012 07:20:12 +0000 (UTC)
commit 38cfb259efa4aeaf3662ade33f3a81087d6ffc80
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date: Sun Aug 19 22:28:50 2012 -0700
Add reserved methods to allow future-proof ABI
gee/abstractbidirlist.vala | 13 ++++++++++++-
gee/abstractbidirsortedmap.vala | 12 ++++++++++++
gee/abstractbidirsortedset.vala | 12 ++++++++++++
gee/abstractcollection.vala | 12 ++++++++++++
gee/abstractlist.vala | 12 ++++++++++++
gee/abstractmap.vala | 12 ++++++++++++
gee/abstractmultimap.vala | 12 ++++++++++++
gee/abstractmultiset.vala | 12 ++++++++++++
gee/abstractqueue.vala | 12 ++++++++++++
gee/abstractset.vala | 12 ++++++++++++
gee/abstractsortedmap.vala | 12 ++++++++++++
gee/abstractsortedset.vala | 12 ++++++++++++
12 files changed, 144 insertions(+), 1 deletions(-)
---
diff --git a/gee/abstractbidirlist.vala b/gee/abstractbidirlist.vala
index 5d20951..becd462 100644
--- a/gee/abstractbidirlist.vala
+++ b/gee/abstractbidirlist.vala
@@ -21,7 +21,6 @@
*/
public abstract class Gee.AbstractBidirList<G> : AbstractList<G>, BidirList<G> {
-
/**
* { inheritDoc}
*/
@@ -43,5 +42,17 @@ public abstract class Gee.AbstractBidirList<G> : AbstractList<G>, BidirList<G> {
return instance;
}
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractbidirsortedmap.vala b/gee/abstractbidirsortedmap.vala
index d399d1a..029d0d7 100644
--- a/gee/abstractbidirsortedmap.vala
+++ b/gee/abstractbidirsortedmap.vala
@@ -49,5 +49,17 @@ public abstract class Gee.AbstractBidirSortedMap<K,V> : Gee.AbstractSortedMap<K,
return instance;
}
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractbidirsortedset.vala b/gee/abstractbidirsortedset.vala
index 5ea426d..ba764e4 100644
--- a/gee/abstractbidirsortedset.vala
+++ b/gee/abstractbidirsortedset.vala
@@ -49,5 +49,17 @@ public abstract class Gee.AbstractBidirSortedSet<G> : Gee.AbstractSortedSet<G>,
return instance;
}
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractcollection.vala b/gee/abstractcollection.vala
index 9db3160..7e2595b 100644
--- a/gee/abstractcollection.vala
+++ b/gee/abstractcollection.vala
@@ -97,4 +97,16 @@ public abstract class Gee.AbstractCollection<G> : Object, Traversable<G>, Iterab
return instance;
}
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractlist.vala b/gee/abstractlist.vala
index ee7ca2a..1b71bbe 100644
--- a/gee/abstractlist.vala
+++ b/gee/abstractlist.vala
@@ -82,4 +82,16 @@ public abstract class Gee.AbstractList<G> : Gee.AbstractCollection<G>, List<G> {
return instance;
}
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractmap.vala b/gee/abstractmap.vala
index 5d96ffb..e7a8bb2 100644
--- a/gee/abstractmap.vala
+++ b/gee/abstractmap.vala
@@ -135,4 +135,16 @@ public abstract class Gee.AbstractMap<K,V> : Object, Traversable<Map.Entry<K,V>>
public virtual Iterator<A> stream<A> (owned StreamFunc<Map.Entry<K,V>, A> f) {
return iterator ().stream<A> ((owned) f);
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractmultimap.vala b/gee/abstractmultimap.vala
index 1581629..1f08b0b 100644
--- a/gee/abstractmultimap.vala
+++ b/gee/abstractmultimap.vala
@@ -134,4 +134,16 @@ public abstract class Gee.AbstractMultiMap<K,V> : Object, MultiMap<K,V> {
public Type key_type { get { return typeof(K); } }
public Type value_type { get { return typeof(V); } }
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractmultiset.vala b/gee/abstractmultiset.vala
index 088b19d..f055332 100644
--- a/gee/abstractmultiset.vala
+++ b/gee/abstractmultiset.vala
@@ -92,6 +92,18 @@ public abstract class Gee.AbstractMultiSet<G> : AbstractCollection<G>, MultiSet<
_nitems = 0;
}
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
+
private class Iterator<G> : Object, Traversable<G>, Gee.Iterator<G> {
private AbstractMultiSet<G> _set;
diff --git a/gee/abstractqueue.vala b/gee/abstractqueue.vala
index 8cc2d3e..9118551 100644
--- a/gee/abstractqueue.vala
+++ b/gee/abstractqueue.vala
@@ -52,4 +52,16 @@ public abstract class Gee.AbstractQueue<G> : Gee.AbstractCollection<G>, Queue<G>
* { inheritDoc}
*/
public abstract G? poll ();
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractset.vala b/gee/abstractset.vala
index 783d978..9155b1e 100644
--- a/gee/abstractset.vala
+++ b/gee/abstractset.vala
@@ -47,4 +47,16 @@ public abstract class Gee.AbstractSet<G> : Gee.AbstractCollection<G>, Set<G> {
return instance;
}
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractsortedmap.vala b/gee/abstractsortedmap.vala
index 52916b1..80ce523 100644
--- a/gee/abstractsortedmap.vala
+++ b/gee/abstractsortedmap.vala
@@ -66,5 +66,17 @@ public abstract class Gee.AbstractSortedMap<K, V> : AbstractMap<K,V>, SortedMap<
return instance;
}
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
diff --git a/gee/abstractsortedset.vala b/gee/abstractsortedset.vala
index 44c3b89..c178b57 100644
--- a/gee/abstractsortedset.vala
+++ b/gee/abstractsortedset.vala
@@ -94,5 +94,17 @@ public abstract class Gee.AbstractSortedSet<G> : Gee.AbstractSet<G>, SortedSet<G
return instance;
}
}
+
+ // Future-proofing
+ internal virtual void reserved0() {}
+ internal virtual void reserved1() {}
+ internal virtual void reserved2() {}
+ internal virtual void reserved3() {}
+ internal virtual void reserved4() {}
+ internal virtual void reserved5() {}
+ internal virtual void reserved6() {}
+ internal virtual void reserved7() {}
+ internal virtual void reserved8() {}
+ internal virtual void reserved9() {}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]