/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/*
 *    Lorica IDL file.
 *    Copyright (C) 2007-2008 OMC Denmark ApS.
 *
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
 */

module Lorica
{
	// Interface used by lorica to notify servers of status changes
	// The server agent is part of a suite of utilities used by applications
	// wishing to be Lorica-aware. This is coupled with internal interfaces
	// used by the application to register callback hooks for processing the
	// notification messages, and to provide companion proxied reference
	// management in the application.
	interface ServerAgent
	{
		// Operation used to provide information to the server regarding
		// errors related to object references associated with this agent
		void error_occured(in long code,
				   in string message);

		// Operation called by lorica when the proxy is shutting down.
		oneway void proxy_disconnect();
	};
};
