summaryrefslogtreecommitdiff
path: root/common/iappinformation.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/iappinformation.h')
-rw-r--r--common/iappinformation.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/common/iappinformation.h b/common/iappinformation.h
new file mode 100644
index 0000000..82133d6
--- /dev/null
+++ b/common/iappinformation.h
@@ -0,0 +1,42 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================
+
+#ifndef IAPPINFORMATION_H
+#define IAPPINFORMATION_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "interface.h"
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Interface to running the game engine
+//-----------------------------------------------------------------------------
+abstract_class IAppInformation : public IBaseInterface
+{
+public:
+ // the number of apps known about by the app
+ virtual int GetAppCount() = 0;
+
+ // details about this particular app
+ // iApp is from [ 0 .. GetAppCount() )
+ virtual const char *GetAppName( int iApp ) = 0;
+ virtual const char *GetAppServerBrowserName( int iApp ) = 0;
+ virtual const char *GetAppGameDir( int iApp ) = 0;
+ virtual bool GetAppHasServers( int iApp ) = 0;
+ virtual uint32 GetAppID( int iApp ) = 0;
+ virtual bool GetAppIsSubscribed( int iApp ) = 0;
+ virtual const char *GetAppIcon( int iApp ) = 0;
+ // converting appID->iApp (needed since this whole interface is backwards)
+ virtual int GetIAppForAppID( uint32 unAppID ) = 0;
+};
+
+#define APPINFORMATION_INTERFACE_VERSION "AppInformation002"
+
+
+#endif // IAPPINFORMATION_H