X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=libvirt%2Flibvirt_c_prologue.c;h=5657aad3be337bdce6b836652eabfecfa3157532;hb=0f9e3596a93f7792fdc0eb7faccabd0d32493749;hp=7fe97148217fe134e9175b2c8bb051b4656b720e;hpb=9b1c8e53eaa6fb79ee801e3014793618b977857d;p=ocaml-libvirt.git diff --git a/libvirt/libvirt_c_prologue.c b/libvirt/libvirt_c_prologue.c index 7fe9714..5657aad 100644 --- a/libvirt/libvirt_c_prologue.c +++ b/libvirt/libvirt_c_prologue.c @@ -12,9 +12,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Please see the file ../COPYING.LIB. */ /* Please read libvirt/README file. */ @@ -104,13 +102,6 @@ static value Val_virterror (virErrorPtr err); * wrappers store domains (and networks) as explicit (dom, conn) * pairs. * - * Further complication with virterror / exceptions: Virterror gives - * us virConnectPtr, virDomainPtr, virNetworkPtr pointers. If we - * follow standard practice and wrap these up in blocks with - * finalizers then we'll end up double-freeing (in particular, calling - * virConnectClose at the wrong time). So for virterror, we have - * "special" wrapper functions (Val_connect_no_finalize, etc.). - * * Update 2008/01: Storage pools and volumes work the same way as * domains and networks. And jobs. */ @@ -143,11 +134,6 @@ static value Val_vol (virStorageVolPtr vol); static value Val_jb (virJobPtr jb); #endif -/* ONLY for use by virterror wrappers. */ -static value Val_connect_no_finalize (virConnectPtr conn); -static value Val_dom_no_finalize (virDomainPtr dom); -static value Val_net_no_finalize (virNetworkPtr net); - /* Domains and networks are stored as pairs (dom/net, conn), so have * some convenience functions for unwrapping and wrapping them. */ @@ -185,7 +171,3 @@ static value Val_volume (virStorageVolPtr vol, value connv); #ifdef HAVE_VIRJOBPTR static value Val_job (virJobPtr jb, value connv); #endif - -/* ONLY for use by virterror wrappers. */ -static value Val_domain_no_finalize (virDomainPtr dom, value connv); -static value Val_network_no_finalize (virNetworkPtr net, value connv);