def filesharing():
 status = (-1)
 finder = _getfinder()
 args = {}
 attrs = {}
 args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form='prop', seld=aetypes.Type('fshr'), fr=None)
 (_reply, args, attrs) = finder.send('core', 'getd', args, attrs)
 if args.has_key('errn'):
  raise Error, aetools.decodeerror(args)
 if args.has_key('----'):
  if (args['----'] == 0):
   status = (-1)
  else:
   status = 1
 args = {}
 attrs = {}
 args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form='prop', seld=aetypes.Type('fsup'), fr=None)
 (_reply, args, attrs) = finder.send('core', 'getd', args, attrs)
 if args.has_key('errn'):
  raise Error, aetools.decodeerror(args)
 if args.has_key('----'):
  if (args['----'] == 1):
   status = 0
 return status

def filesharing ( ) : status = ( - 1 ) finder = _getfinder ( ) args = { } attrs = { } args [ '----' ] = aetypes . ObjectSpecifier ( want = aetypes . Type ( 'prop' ) , form = 'prop' , seld = aetypes . Type ( 'fshr' ) , fr = None ) ( _reply , args , attrs ) = finder . send ( 'core' , 'getd' , args , attrs ) if args . has_key ( 'errn' ) : raise Error , aetools . decodeerror ( args ) if args . has_key ( '----' ) : if ( args [ '----' ] == 0 ) : status = ( - 1 ) else : status = 1 args = { } attrs = { } args [ '----' ] = aetypes . ObjectSpecifier ( want = aetypes . Type ( 'prop' ) , form = 'prop' , seld = aetypes . Type ( 'fsup' ) , fr = None ) ( _reply , args , attrs ) = finder . send ( 'core' , 'getd' , args , attrs ) if args . has_key ( 'errn' ) : raise Error , aetools . decodeerror ( args ) if args . has_key ( '----' ) : if ( args [ '----' ] == 1 ) : status = 0 return status
return the current status of filesharing and whether it is starting up or not: -1 file sharing is off and not starting up 0 file sharing is off and starting up 1 file sharing is on .