Files
libreoffice/cppu/inc/uno/current_context.h

64 lines
2.3 KiB
C
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2012-06-13 14:17:57 +01:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2000-12-21 13:33:52 +00:00
#ifndef _UNO_CURRENT_CONTEXT_H_
#define _UNO_CURRENT_CONTEXT_H_
2011-12-18 04:56:57 +01:00
#include <cppu/cppudllapi.h>
2001-11-09 08:14:31 +00:00
#include <rtl/ustring.h>
2000-12-21 13:33:52 +00:00
#ifdef __cplusplus
extern "C"
{
#endif
2001-05-07 14:07:01 +00:00
/** Gets the current task's context.
2001-11-09 08:14:31 +00:00
@attention
Don't spread the returned interface around to other threads. Every thread has its own
current context.
2000-12-21 13:33:52 +00:00
@param ppCurrentContext inout param current context of type com.sun.star.uno.XCurrentContext
@param pEnvDcp descriptor of returned interface's environment
@param pEnvContext context of returned interface's environment (commonly 0)
@return true, if context ref was transferred (even if null ref)
2000-12-21 13:33:52 +00:00
*/
2011-12-18 04:56:57 +01:00
CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_getCurrentContext(
2000-12-21 13:33:52 +00:00
void ** ppCurrentContext,
rtl_uString * pEnvDcp, void * pEnvContext )
2001-03-09 11:10:57 +00:00
SAL_THROW_EXTERN_C();
2000-12-21 13:33:52 +00:00
2001-05-07 14:07:01 +00:00
/** Sets the current task's context.
@param pCurrentContext in param current context of type com.sun.star.uno.XCurrentContext
@param pEnvDcp descriptor of interface's environment
@param pEnvContext context of interface's environment (commonly 0)
@return true, if context ref was transferred (even if null ref)
2001-05-07 14:07:01 +00:00
*/
2011-12-18 04:56:57 +01:00
CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_setCurrentContext(
2001-05-07 14:07:01 +00:00
void * pCurrentContext,
rtl_uString * pEnvDcp, void * pEnvContext )
2001-05-07 14:07:01 +00:00
SAL_THROW_EXTERN_C();
2000-12-21 13:33:52 +00:00
#ifdef __cplusplus
}
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */