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

FreeBSD Manual Pages

  
 
  

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

NAME
     target_parent - Lookup the frameserver VID of the parent to a subsegment

SYNOPSIS
     vid
     target_parent( vid )

DESCRIPTION
     This function can be used to determine if a specific vid is a subsegment to
     a	frameserver,  and if so, get the primary vid associated with that frame-
     server.

NOTES
     1	    It is not guaranteed that the returned vid points to a valid  frame-
	    server  or vid if the connection has been pacified or terminated ex-
	    ternally.

EXAMPLE
     function target_parent0()
	   local a = target_alloc("test", function() end);
	   b = target_alloc(a, function() end);
	   if (target_parent(b) != a) then
		 shutdown("reported subsegment parent is invalid", -1);
	   else
		 shutdown("");
	   end
     end

EXAMPLE
     function target_parent1()
	   local a = target_alloc("test", function() end);
	   if (valid_vid(target_parent(a))) then
		 shutdown("connection point should not have a parent", -1);
	   else
		 shutdown("");
	   end
     end

SEE ALSO:
targetcontrol			   August 2026			target_parent(3)

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

home | help