From 2c26f2a8b4dabb068839befad720b72e1c740ed2 Mon Sep 17 00:00:00 2001 From: adash Date: Thu, 1 Mar 2007 22:06:45 +0000 Subject: [PATCH] remove files --- Robust/src/Runtime/DSTM/interface/object.c | 45 ---------------------- Robust/src/Runtime/DSTM/interface/object.h | 27 ------------- 2 files changed, 72 deletions(-) delete mode 100644 Robust/src/Runtime/DSTM/interface/object.c delete mode 100644 Robust/src/Runtime/DSTM/interface/object.h diff --git a/Robust/src/Runtime/DSTM/interface/object.c b/Robust/src/Runtime/DSTM/interface/object.c deleted file mode 100644 index 3fa12047..00000000 --- a/Robust/src/Runtime/DSTM/interface/object.c +++ /dev/null @@ -1,45 +0,0 @@ -/* This is the C file for the "objects" */ - -/**************************************** -* $File: Object.c -* $Author: adash@uci.edu -* $Revision: 1.1 $Date:02/12/2006 -* $Description: Header file for objects -* ******************************************/ - -#include "object.h" -#include - -unsigned int getobjid(object_t *obj) { - return obj->o_id; -} - -short getobjversion(object_t *obj) { - return obj->version; -} - -short getobjtype(object_t *obj) { - return obj->type; -} - - -short getobjrcount(object_t *obj) { - return obj->ref_count; -} - -object_t *createobject(void) { - /* TODO: - 1. Create object using malloc - 2. Assign it a unique id - 3. Insert a new entry in machine table with - */ -} - -int deleteobject(object *ptr) { - /* TODO: - 1. Remove entry from machine entry - 2. Inform other machines of delete - 3. free memory - 4. decrement object reference count - */ -} diff --git a/Robust/src/Runtime/DSTM/interface/object.h b/Robust/src/Runtime/DSTM/interface/object.h deleted file mode 100644 index 9429e854..00000000 --- a/Robust/src/Runtime/DSTM/interface/object.h +++ /dev/null @@ -1,27 +0,0 @@ -/* This is a header file for class objects */ -/***************************************************** - * $File: Object.h - * $Author: adash@uci.edu - * $Revision: 1.1 $Date:02/12/2006 - * $Description: This has all definitions for object - ****************************************************/ - -#ifndef _object_h_ -#define _object_h_ -struct object_t { - int o_id; - short version; - int type; - short ref_count; - char update_flag; -}; -typedef struct object_t object_t; - -int getobjid(object_t *obj); -short getobjversion(object_t *obj); -int getobjtype(object_t *obj); -short getobjrcount(object_t *obj); -object_t *createobject(void); -int deleteobject(object_t *); - -#endif -- 2.34.1