LCOV - code coverage report
Current view: directory - src/trusted/desc - nacl_desc_effector_trusted_mem.h (source / functions) Found Hit Coverage
Test: coverage.lcov Lines: 3 3 100.0 %
Date: 2014-09-25 Functions: 0 0 -

       1                 : /*
       2                 :  * Copyright (c) 2012 The Native Client Authors. All rights reserved.
       3                 :  * Use of this source code is governed by a BSD-style license that can be
       4                 :  * found in the LICENSE file.
       5                 :  */
       6                 : 
       7                 : /* @file
       8                 :  *
       9                 :  * Implementation of effector subclass used only for service runtime's
      10                 :  * gio_shm object for mapping/unmapping shared memory in *trusted*
      11                 :  * address space.
      12                 :  */
      13                 : 
      14                 : #ifndef NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_EFFECTOR_TRUSTED_MEM_H_
      15                 : #define NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_EFFECTOR_TRUSTED_MEM_H_
      16                 : 
      17                 : #include "native_client/src/include/nacl_base.h"
      18                 : #include "native_client/src/include/portability.h"
      19                 : 
      20                 : #include "native_client/src/trusted/desc/nacl_desc_effector.h"
      21                 : 
      22                 : EXTERN_C_BEGIN
      23                 : 
      24                 : extern const struct NaClDescEffector NaClDescEffectorTrustedMemStruct;
      25                 : 
      26               3 : static INLINE struct NaClDescEffector *NaClDescEffectorTrustedMem(void) {
      27                 :   /* This struct is read-only, although other NaClDescEffectors need not be. */
      28               3 :   return (struct NaClDescEffector *) &NaClDescEffectorTrustedMemStruct;
      29               3 : }
      30                 : 
      31                 : EXTERN_C_END
      32                 : 
      33                 : #endif  // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_EFFECTOR_TRUSTED_MEM_H_

Generated by: LCOV version 1.7