yaffs: Merge branch 'python_play'
authorTimothy Manning <tfhmanning@gmail.com>
Wed, 20 Oct 2010 00:42:58 +0000 (13:42 +1300)
committerTimothy Manning <tfhmanning@gmail.com>
Wed, 20 Oct 2010 00:42:58 +0000 (13:42 +1300)
Fix conflict

1  2 
direct/python/yaffsfs.py
direct/yaffsfs.c
direct/yaffsfs.h

index 1d0c8ffde8c4845b20f4fa6341509c0cae8db118,7347687cf9a1ff461e758ac82361e77253f9c22a..03583fdea6a1fdacf086c548aad9832f6fd3b166
@@@ -240,11 -240,26 +240,26 @@@ yaffs_n_handles = ylib.yaffs_n_handle
  yaffs_n_handles.argtypes = [c_char_p]
  yaffs_n_handles.restype = c_int
  
 -#int yaffs_StartUp(void)
 -yaffs_StartUp = ylib.yaffs_StartUp
 -yaffs_StartUp.argtypes = []
 -yaffs_StartUp.restype = c_int
 +#int yaffs_start_up(void)
 +yaffs_start_up = ylib.yaffs_start_up
 +yaffs_start_up.argtypes = []
 +yaffs_start_up.restype = c_int
  
+ #int yaffs_set_trace(unsigned int tm) { return yaffs_traceMask=tm; }
+ yaffs_set_trace=ylib.yaffs_set_trace
+ yaffs_set_trace.argtypes=[c_uint]
+ yaffs_set_trace.restype=c_uint
+ #int yaffs_get_trace(void) { return yaffs_traceMask; }
+ yaffs_get_trace=ylib.yaffs_get_trace
+ yaffs_get_trace.argtypes=[]
+ yaffs_get_trace.restypes=c_uint
+ #int yaffs_get_error(void)
+ yaffs_get_error=ylib.yaffs_get_error
+ yaffs_get_error.argtypes=[]
+ yaffs_get_error.restypes=c_int
  yaffs_O_CREAT=ylib.yaffs_O_CREAT()
  yaffs_O_RDONLY=ylib.yaffs_O_RDONLY()
  yaffs_O_WRONLY=ylib.yaffs_O_WRONLY()
index 0b236ff86669f0545e38ef0df85bb807c2b1a5f5,83605c57a44064fde95c9f79bb7050d0dc28f672..ea3322374a2b26562af4ecc59ae9caf3faf72909
@@@ -2330,7 -2326,12 +2330,12 @@@ int yaffs_n_handles(const YCHAR *path
        return yaffsfs_CountHandles(obj);
  }
  
 -int yaffs_DumpDevStruct(const YCHAR *path)
+ int yaffs_get_error(void)
+ {
+       return yaffsfs_GetLastError();
+ }
 +int yaffs_dump_dev(const YCHAR *path)
  {
  #if 0
        YCHAR *rest;
index 5f47a2d86df931cf100c21c6a3442ca1fe8e1f51,6dd2c943f731a60d19a2162a4eac01e3f749e95b..e0949593d7281e6742c0b13e9389b4655449c11f
@@@ -166,16 -166,19 +166,19 @@@ int yaffs_n_handles(const YCHAR *path)
  int yaffs_open_sharing(const YCHAR *path, int oflag, int mode, int shareMode) ;
  
  
 -struct yaffs_DeviceStruct;
 -void yaffs_AddDevice(struct yaffs_DeviceStruct *dev);
 +struct yaffs_dev_s;
 +void yaffs_add_device(struct yaffs_dev_s *dev);
  
 -int yaffs_StartUp(void);
 +int yaffs_start_up(void);
  
+ /* Function to get the last error */
+ int yaffs_get_error(void);
  
  /* Function only for debugging */
  void * yaffs_getdev(const YCHAR *path);
 -int yaffs_DumpDevStruct(const YCHAR *path);
 +int yaffs_dump_dev(const YCHAR *path);
  
  #endif