Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
restore_target(3)		  Arcan Lua API 	       restore_target(3)

NAME
     restore_target  - Request that the target frameserver session restores from
     a previously made snapshot.

SYNOPSIS
     bool:exist
     restore_target( vid:target, string:resource )
     restore_target( .B )
     restore_target( vid:target, string:resource, number:namespace )
     restore_target( .B )
     restore_target( vid:target, string:resource,  number:namespace,  string:de-
     scription )

DESCRIPTION
     Open resource  from the APPL_STATE_RESOURCE  and send to target  requesting
     that  it  restores  its state from the resource. It returns true of the re-
     source was found and sent successfully. If another namespace   is	provided
     from  the	normal	set  of read- resources, It will be opened read only and
     sent as a binary chunk. On a pasteboard this action  is  interpreted  as  a
     'paste'  if  there  is  ongoing mouse-drag action on the parent segment, it
     will be interpreted as a drop. On a segment that announced  bchunkstate  it
     will  be interpreted as an open operation. If a description  is provided, a
     short (~60ch) text type descriptor of the data can be amended. The  conven-
     tion  is  to  treat this as a simplified MIME - type, with the application/
     prefix being the default (and can thus be omitted).

NOTES
     1	    The namespace  is one of the set:

	    SHARED_RESOURCE , APPL_RESOURCE , APPL_TEMP_RESOURCE

     2	    It is possible that the target  can  re-open  the  descriptor  in  a
	    write- mode depending on operating system and creative use of primi-
	    tives.

targetcontrol			   August 2026		       restore_target(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=restore_target&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help