This file is indexed.

/usr/include/grapple/grapple_message.h is in libgrapple-dev 0.9.1-0ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
    Grapple - A fully featured network layer with a simple interface
    Copyright (C) 2006 Michael Simms

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library 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
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

    Michael Simms
    michael@linuxgamepublishing.com
*/

#ifndef GRAPPLE_MESSAGE
#define GRAPPLE_MESSAGE

#include "grapple_types.h"

typedef enum
  {
    GRAPPLE_MSG_NEW_USER             =  1,
    GRAPPLE_MSG_NEW_USER_ME,
    GRAPPLE_MSG_USER_NAME,
    GRAPPLE_MSG_USER_MSG,
    GRAPPLE_MSG_SESSION_NAME,
    GRAPPLE_MSG_USER_DISCONNECTED,
    GRAPPLE_MSG_SERVER_DISCONNECTED,
    GRAPPLE_MSG_CONNECTION_REFUSED,
    GRAPPLE_MSG_PING,
    GRAPPLE_MSG_GROUP_CREATE,
    GRAPPLE_MSG_GROUP_ADD,
    GRAPPLE_MSG_GROUP_REMOVE,
    GRAPPLE_MSG_GROUP_DELETE,
    GRAPPLE_MSG_YOU_ARE_HOST,
    GRAPPLE_MSG_CONFIRM_RECEIVED,
    GRAPPLE_MSG_CONFIRM_TIMEOUT,
  } grapple_messagetype;

typedef enum
  {
    GRAPPLE_NOCONN_VERSION_MISMATCH    =  1,
    GRAPPLE_NOCONN_SERVER_FULL,
    GRAPPLE_NOCONN_SERVER_CLOSED,
    GRAPPLE_NOCONN_PASSWORD_MISMATCH,
  } grapple_connection_refused;

typedef struct
{
  grapple_messagetype type;
  union
  {
    struct 
    {
      grapple_user id;
      char *name;
    } USER_NAME;
    struct 
    {
      char *name;
    } SESSION_NAME;
    struct
    {
      grapple_user id;
      int me;
    } NEW_USER;
    struct
    {
      grapple_user id;
      void *data;
      int length;
    } USER_MSG;
    struct
    {
      grapple_user id;
    } USER_DISCONNECTED;
    struct
    {
      grapple_connection_refused reason;
    } CONNECTION_REFUSED;
    struct
    {
      grapple_user id;
      double pingtime;
    } PING;
    struct
    {
      grapple_user groupid;
      char *name;
      grapple_user memberid;
    } GROUP;
    struct
    {
      grapple_confirmid messageid;
      int usercount;
      grapple_user *timeouts;
    } CONFIRM;
  };
} grapple_message;

#ifdef __cplusplus
extern "C" {
#endif

  extern void grapple_message_dispose(grapple_message *);

#ifdef __cplusplus
}
#endif

#endif