Changeset 18626b3 in mainline for uspace/lib/ext2/libext2_inode.c


Ignore:
Timestamp:
2011-06-02T19:04:25Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6a7e497
Parents:
cf5e86e
Message:

Fix usage of inline/extern in in libext2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext2/libext2_inode.c

    rcf5e86e r18626b3  
    4545 * @param inode pointer to inode
    4646 */
    47 inline uint32_t ext2_inode_get_mode(ext2_superblock_t *sb, ext2_inode_t *inode)
     47uint32_t ext2_inode_get_mode(ext2_superblock_t *sb, ext2_inode_t *inode)
    4848{
    4949        if (ext2_superblock_get_os(sb) == EXT2_SUPERBLOCK_OS_HURD) {
     
    6161 * @param type EXT2_INODE_MODE_TYPE_* constant to check
    6262 */
    63 inline bool ext2_inode_is_type(ext2_superblock_t *sb, ext2_inode_t *inode, uint32_t type)
     63bool ext2_inode_is_type(ext2_superblock_t *sb, ext2_inode_t *inode, uint32_t type)
    6464{
    6565        uint32_t mode = ext2_inode_get_mode(sb, inode);
     
    7272 * @param inode pointer to inode
    7373 */
    74 inline uint32_t ext2_inode_get_user_id(ext2_superblock_t *sb, ext2_inode_t *inode)
     74uint32_t ext2_inode_get_user_id(ext2_superblock_t *sb, ext2_inode_t *inode)
    7575{
    7676        uint32_t os = ext2_superblock_get_os(sb);
     
    9090 * @param inode pointer to inode
    9191 */
    92 inline uint64_t ext2_inode_get_size(ext2_superblock_t *sb, ext2_inode_t *inode)
     92uint64_t ext2_inode_get_size(ext2_superblock_t *sb, ext2_inode_t *inode)
    9393{
    9494        uint32_t major_rev = ext2_superblock_get_rev_major(sb);
     
    109109 * @param inode pointer to inode
    110110 */
    111 inline uint32_t ext2_inode_get_group_id(ext2_superblock_t *sb, ext2_inode_t *inode)
     111uint32_t ext2_inode_get_group_id(ext2_superblock_t *sb, ext2_inode_t *inode)
    112112{
    113113        uint32_t os = ext2_superblock_get_os(sb);
     
    125125 * @param inode pointer to inode
    126126 */
    127 inline uint16_t ext2_inode_get_usage_count(ext2_inode_t *inode)
     127uint16_t ext2_inode_get_usage_count(ext2_inode_t *inode)
    128128{
    129129        return uint16_t_le2host(inode->usage_count);
     
    137137 * @param inode pointer to inode
    138138 */
    139 inline uint32_t ext2_inode_get_reserved_512_blocks(ext2_inode_t *inode)
     139uint32_t ext2_inode_get_reserved_512_blocks(ext2_inode_t *inode)
    140140{
    141141        return uint32_t_le2host(inode->reserved_512_blocks);
     
    148148 * @param inode pointer to inode
    149149 */
    150 inline uint32_t ext2_inode_get_reserved_blocks(ext2_superblock_t *sb,
     150uint32_t ext2_inode_get_reserved_blocks(ext2_superblock_t *sb,
    151151    ext2_inode_t *inode)
    152152{
     
    160160 * @param inode pointer to inode
    161161 */
    162 inline uint32_t ext2_inode_get_flags(ext2_inode_t *inode) {
     162uint32_t ext2_inode_get_flags(ext2_inode_t *inode) {
    163163        return uint32_t_le2host(inode->flags);
    164164}
     
    170170 * @param idx Index to block. Valid values are 0 <= idx < 12
    171171 */
    172 inline uint32_t ext2_inode_get_direct_block(ext2_inode_t *inode, uint8_t idx)
     172uint32_t ext2_inode_get_direct_block(ext2_inode_t *inode, uint8_t idx)
    173173{
    174174        assert(idx < EXT2_INODE_DIRECT_BLOCKS);
     
    183183 *            singly-indirect block and 2 is triply-indirect-block
    184184 */
    185 inline uint32_t ext2_inode_get_indirect_block(ext2_inode_t *inode, uint8_t idx)
     185uint32_t ext2_inode_get_indirect_block(ext2_inode_t *inode, uint8_t idx)
    186186{
    187187        assert(idx < 3);
Note: See TracChangeset for help on using the changeset viewer.